CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS MICROSOFT DETAILS
    Question :
    How to find the difference between dates.(Year, Month, Day
    )?


    Posted by: Kunal on 5/19/2008

    Contact Kunal Contact Kunal
    Category Microsoft Interview Questions
    Rating (0.4) By 933 users
    Added on 5/19/2008
    Views 2235
    Rate it!
    Answers:

    Year is that nos which is not changed for atleast 12 month.
    Month is that nos which is stable at least 30 days.
    And the Day is that no. which is always change with every morning.
    thats it.



    Posted by: Amol Kulkarni    

    Contact Amol Kulkarni Contact Amol Kulkarni

    date1= d1 | m1 | y1
    date2= d2 | m2 | y2

    differnce ::
    y= y2 - y1
    m= m2 - m1
    d= d2 - d1
    if( d < 0 )
    { d = (days in m1 i.e 28 or 29
    or 30 or 31) -d1 + d2;
    m = m -1 ;
    }
    if(m < 0)
    { m = 12 + m ;
    y = y - 1;
    }



    Posted by: brijendra kumar    

    Contact brijendra kumar Contact brijendra kumar

    365(or)366 are year,1 day is a day,7 days are 1 week



    Posted by: u.shivarajkumar    

    Contact u.shivarajkumar Contact u.shivarajkumar

    Do work day on(date) & collect mony end of the month then u see end of the year u also happy in our life that means (DATE/MONTH/YEAR)



    Posted by: Trupti c.Berde    

    Contact Trupti c.Berde Contact Trupti c.Berde

    year is that nos which is not changed for atleast 12 month.
    Month is that nos which is stable at least 30 days.
    And the Day is that no. which is always change with every morning.
    thats it.



    Posted by: kavitha    

    Contact kavitha Contact kavitha

    Year is that nos which is not changed for atleast 12 month.
    Month is that nos which is stable at least 30 days.
    And the Day is that no. which is always change with every morning.
    thats it.



    Posted by: sourabh jain    

    Contact sourabh jain Contact sourabh jain

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Microsoft Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0 Seconds