History |
TimeValue (dates)
Purpose
Returns a date data type, given a string argument.
Syntax
TimeValue (StringExpression)
Example
Sub Main()
Dim mytimestr As String
Dim mymeeting As Date
mytimestr = "2:15:00 PM"
mymeeting = TimeValue(mytimestr)
Print "I have a meeting at: ",mymeeting
End Sub
| ||||