CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    VA, USA
    Posts
    8

    Difference between 2 dates

    Hi,

    Using VBA in MS Access, how can I find the difference between 2 dates as X years Y months and Z days.

    Thanks in advance.
    Nandini


  2. #2
    Join Date
    Nov 1999
    Location
    Denver, CO
    Posts
    20

    Re: Difference between 2 dates

    Try using the function "DateDiff". It will return the info you want. Check MSDN documentation for more info.

    Allen Noakes
    VB Programmer/Analyst
    Dames & Moore Group


  3. #3
    Join Date
    Dec 1999
    Location
    Delhi, India
    Posts
    7

    Re: Difference between 2 dates

    you can use datediff function for getting the diiference between two dates.

    you hav to specify that in which format do u want the difference like u want difference in terms of days or month or year etc.

    u can check help for the exact syntax in case u find ne prob u can drop me a mail at [email protected]


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