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)
|