[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Convert string to time, returning a default value
Source position: datih.inc line 182
function StrToTimeDef( |
const S: ShortString; |
const Defvalue: TDateTime |
):TDateTime; |
const S: ShortString; |
const Defvalue: TDateTime; |
separator: Char |
):TDateTime; |
const S: AnsiString; |
const Defvalue: TDateTime |
):TDateTime; |
const S: AnsiString; |
const Defvalue: TDateTime; |
separator: Char |
):TDateTime; |
StrToTimeDef tries to convert the string S to a valid TDateTime time value, and returns DefValue if S does not contain a valid time indication.
None.
|
Convert a time string to a TDateTime value. |
|
|
Try to convert a string with a time indication to a TDateTime value |
|
|
Convert string to date, returning a default value |