What is the syntax to convert an input to time?

TimeValue(StringTime)
‘examples
MsgBox (TimeValue("09:44")) 'returns 9:44:00 AM
MsgBox (TimeValue("13:58")) ' returns 1:58:00 PM
MsgBox (TimeValue("23:37:41")) ' returns 11:37:41 PM

 

Advertisements