Results 1 to 2 of 2

Thread: Calculate amount of minutes between 2 dates

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    19
    Can anyone tell me how to calculate the total amount of minutes between for example:

    08-22-00 15:53 and 08-24-00 09:29

    Thanks in advance!

    Dave.

  2. #2
    Guest
    Use the DateDiff Function:

    Code:
        Dim Dat1 As Date
        Dim Dat2 As Date
        
        Dat1 = "08-22-00 15:53"
        Dat2 = "08-24-00 09:29"
    
        MsgBox "Amount of time between " & Dat1 & " and " & Dat2 & " in minutes: " & DateDiff("n", Dat1, Dat2)
    See VB-helpfiles for more info...
    Enjoy!

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