View Single Post
  #2 (permalink)  
Old April 5th, 2004, 06:43 AM
krigans krigans is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to krigans Send a message via Yahoo to krigans
Default

Hi,
  Can try this example if it works for u
'time1 = 02:45
'time2 = 12:45

Time1 = "01/01/1999 02:45:00"
Time2 = "01/01/1999 12:45:30"

'VBGeneralDate 0 Display the date and time using system settings
'VBLongDate 1 Display the date in long date format Saturday, June 26, 1943
'VBShortDate 2 Display the date in short date format 6/26/43
'VBLongTime 3 Display the time in long time format 3:48:01 PM
'VBShortTime 4 Display the time in short time format (24 hour clock) 15:48

wscript.echo FormatDateTime(CDate(time1) + CDate(time2),4)

Reply With Quote