Unit 'JsonIni' Package
[Overview][Classes][Index] [#fcl]

TJSONIniFile.ReadDate

Reads a date value from the JSON ini file

Declaration

Source position: jsonini.pp line 61

public function TJSONIniFile.ReadDate(

  const Section: string;

  const Ident: string;

  Default: TDateTime

):TDateTime; override;

Arguments

Section

  

The section name to read from

Ident

  

The key name to read

Default

  

Default value to return if key not found or conversion failed

Function result

The date value or default if key not found or conversion failed

Description

ReadDate reads a date value from the specified section and key. If the stored value is a JSON number, it is interpreted as a TDateTime value. If the stored value is a string, it is parsed using the ISO date format (yyyy-mm-dd). If the key is not found or conversion fails, the Default value is returned.

See also

WriteDate

  

Writes a date value to the JSON ini file

ReadDateTime

  

Reads a date-time value from the JSON ini file

ReadTime

  

Reads a time value from the JSON ini file


Documentation generated on: Jan 27 2026