Skip to content

TJSONIniFile.ReadDateTime

Reads a date-time value from the JSON ini file

Declaration

Source position: jsonini.pp line 62

public 
function TJSONIniFile.ReadDateTime(const Section: string; 
                                  const Ident: string; 
                                  Default: TDateTime) : TDateTime
                                  ;  override;

Description

ReadDateTime reads a date-time 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 ISO date-time format (yyyy-mm-ddThh:nn:ss.zzz). If the key is not found or conversion fails, the Default value is returned.

See also

Name Description
WriteDateTime Writes a date-time value to the JSON ini file
ReadDate Reads a date value from the JSON ini file
ReadTime Reads a time value from the JSON ini file