DateTimeToString

Prototype

Matrix DateTimeToString( Matrix mDateTime )

Return Value

The return value is a character matrix containing the string output from the DATETIMEw.d format.

Parameters

Matrix mDateTime
The SAS datetime value to be converted. A SAS datetime value is the number of seconds since midnight on January 1, 1960.

Remarks

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

Example
m = DateTimeToString( 520948800 );
print m;
print 520948800[format=DATETIME19.];
See Also

DateToString
TimeToString
StringToDateTime