Hi
i use Datediff() and it return only hours but i want total time with minutes and seconds at the same time
i use following code for all this and it works fine but when the the time came which i have mentioned in the coding produces wrong output
because the difference between is 1:13:52 but it is showing 12:33:52
how can i correct this please help
Dim Start As Date
Dim Finish As Date
Dim Duration As Date
Dim outStr As String
Dim Length As Integer
'Converting time values to dates
Start = CDate("5:53:05 PM")
Finish = CDate("6:26:57 PM")
'Find duration
Duration = Finish - Start
outStr = CStr(Duration)
'Convert to string an trim AM/PM indicator
Length = InStr(outStr, "AM")
outStr = Mid(CStr(Duration), 1, Length - 2)
MsgBox (outStr)