|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack Math1 Conversion ScanDateTime|
|See also: TLanguage, TimeString|
The function ScanDateTime encodes a formatted date/time string into a TDateTime. The parameter Instring contains the date/time string to be scanned. The parameter Format specifies the format of the date/time string (see below). The parameter Language determines which language to use when scanning month and day names. The variable parameter error returns the following error codes:
Format specifies custom format string for the date-time input string. The following format characters are understood (please note that the format characters are case sensitive):
To include literal strings in the format, enclose them in single quotes. Failing to quote literal strings can have unpredictable results, even if they do not include formatting codes. Use two single quotes to represent one single quote character in literal string.