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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScanDateTime |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
The following format characters can be used in the Format parameter (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. |
Hint: | Please note the subtle differences between the format characters used in ScanDateTime and the date/time format strings used by the Delphi routine FormatDateTime. |