Sign in Join
FPDoc Onlineexperiment

StrToDateDef function

In unit sysutils

Convert string to date, returning a default value.

Declaration

pascal
function StrToDateDef(const S: ShortString; const Defvalue: TDateTime)
: TDateTime

Description

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.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.