[Overview][Constants][Procedures and functions][Index] |
Scans a string for a DateTime pattern and returns the date/time
Source position: line 0
function ScanDateTime( |
const Pattern: String; |
const s: String; |
const fmt: TFormatSettings; |
startpos: Integer = 1 |
):TDateTime; overload; |
const Pattern: String; |
const s: String; |
startpos: Integer = 1 |
):TDateTime; overload; |
ScanDateTime scans string S for the date/time pattern Pattern, starting at position StartPos (default 1). Optionally, the format settings fmt can be specified.
In effect, this function does the opposite of what FormatDateTime does. The Pattern variable must contain a valid date/time pattern: note that not all possible formatdatetime patterns can be recognized, e.g., hn cannot be detected properly.
In case of an error, a EConvertError exception is raised.
|
Return a string representation of a TDateTime value with a given format. |
lazarus-ccr.sourceforge.net |