TCustomIniFile.ReadDate function
Read a date value.
Declaration
function ReadDate(const Section: string; const Ident: string;
Default: TDateTime): TDateTime; virtualArguments
Section | Section to read
|
Ident | Name of key to retrieve value from. |
Default | Default value to return when the key
|
Function result
Value of
Ident as a
TDateTime.
Description
ReadDate reads the key
Ident in section
Section,
and returns the value as a date (
TDateTime). If the specified key or section do not exist,
then the value in
Default is returned. If the key
exists, but contains an invalid date value,
Default is also returned.
The international settings of the
SysUtils are taken into
account when deciding if the read value is a correct date.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
