Convert string to date, returning a default value.
Source position: datih.inc line 185
function StrToDateDef( |
const S: ShortString; |
const Defvalue: TDateTime |
):TDateTime; |
const S: ShortString; |
const Defvalue: TDateTime; |
separator: AnsiChar |
):TDateTime; |
const S: string; |
const Defvalue: TDateTime |
):TDateTime; |
const S: string; |
const Defvalue: TDateTime; |
separator: char |
):TDateTime; |
StrToDateDef tries to convert the string S to a valid TDateTime date value, and returns DefValue if S does not contain a valid date indication.
None.
|
Convert a date string to a TDateTime value. |
|
|
Try to convert a string with a date indication to a TDateTime value. |
|
|
Convert string to time, returning a default value. |