Description
Evaluates the string specified and returns a Time data type.
Arguments
DateTimeString is a string including a Date and a Time value.
Action
Evaluates the string specified and returns a Time data type.
Examples
DTSToTimeField ("2000/01/13 11:30:15")
Returns the Time value, 11:30:15 am. The month must be entered as 01 rather than just 1.
Comments
For new formulas, use the
CTime or
TimeValue functions instead of DTSToTimeField. The CTime and TimeValue functions are able to convert more types of strings.