Sign in Join
FPDoc Onlineexperiment

StrToDateTimeDef function

In unit sysutils

Convert string to date/time, returning a default value.

Declaration

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

Description

StrToDateTimeDef tries to convert the string S to a valid TDateTime date and time value, and returns DefValue if S does not contain a valid date-time indication.

Errors

None.

See also

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