TimeStringConvert (String function)
Convert date/time string from one format to another (String class)
[Introduced in Sirius Mods 7.9]
Syntax
%outString = string:TimeStringConvert( inputFormat, outputFormat, - [[CentSpan=] number]) Throws InvalidDateString
Syntax terms
%outString | This string is the method object, string, converted to the format in outputFormat. |
---|---|
string | A datetime string. |
inputFormat | The datetime format of the method object string. |
outputFormat | A string that is the format to which the method object is to be converted. |
CentSpan | See the CENTSPAN parameter. |
Usage notes
Examples
%result = (%timestamp):timeStringConvert('YYYYMMDDHHMISSIIIIII', 'HH:MI:SS Mon DD, YYYY')