Skip to content

TJSONIniFile.WriteDateTime

Writes a date-time value to the JSON ini file

Declaration

Source position: jsonini.pp line 67

public 
procedure TJSONIniFile.WriteDateTime(const Section: string; 
                                    const Ident: string; 
                                    Value: TDateTime);  override;

Description

WriteDateTime writes a date-time value to the specified section and key. The date-time is formatted as an ISO date-time string (yyyy-mm-ddThh:nn:ss.zzz) and stored as a JSON string. If the section does not exist, it is created automatically.

See also

Name Description
ReadDateTime Reads a date-time value from the JSON ini file
WriteDate Writes a date value to the JSON ini file
WriteTime Writes a time value to the JSON ini file