StringToDateTime

Prototype

Matrix StringToDateTime( Matrix mDateTimeString )

Return Value

The return value is the SAS datetime value from the DATETIMEw. informat. A SAS datetime value is the number of seconds since midnight on January 1, 1960.

Parameters

Matrix mDateTimeString
The string to be processed by the DATETIMEw. informat.

Remarks

This module converts a string to a SAS datetime value by processing it with the DATETIMEw. informat.

Example
m = StringToDateTime( "01JAN2000:1:23:45" );
print m [format=14.];
print "01JAN2000:1:23:45"DT[format=14.];
See Also

DateTimeToString
StringToDate
StringToTime