CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Date Difference

  1. #1
    Guest

    Date Difference

    how do i get the difference between the dates ? ie. 31-12-1997 and 01-01-1998 then the difference should be 1 day !!
    If any one can help me out ? Please Its an urgency !!!

    Regards
    [email protected]


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Date Difference

    What u can do is get the time in milliseconds of the two dates get the difference. Then u can either do calculation of number of days or u can give it to Date/Calendar class.

    - UnicMan

  3. #3
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Date Difference


    i dont know why UnicMan's answer was rejected. Take a look at this site..

    http://www.codeguru.com/java/articles/476.shtml


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured