Results 1 to 3 of 3

Calculating the Difference Between 2 Dates

Threaded View

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    71

    Calculating the Difference Between 2 Dates

    Hi There,

    I need your help.

    I can't seem to wrap my head around this:

    I have the following code:

    today = Format(Date, "dd/mm/yyyy")
    
    MsgBox DateDiff("d", today, "04/02/2011")
    and it returns 31 when it should be returning a date difference of 1.

    I need the date in the following format dd/mm/yyy

    Any help with this is greatly appreciated.

    Thanks.

    Jay
    Last edited by jason_kelly; 02-04-2011 at 09:16 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1