TsgcWSPServer_Dataset › Properties › FormatSettings
Date, time and numeric format settings used when serialising field values.
property FormatSettings: TsgcWSDatasetFormatSettings read FFormatSettings write SetFormatSettings;
—
Controls how TDateTime, TDate, TTime, Float and Currency fields are encoded in the JSON envelope that travels on the wire. Set DateSeparator, TimeSeparator, ShortDateFormat, LongTimeFormat, DecimalSeparator and ThousandSeparator so the format matches whatever the clients expect; otherwise the host locale is used. Keep client and server FormatSettings in sync to avoid conversion errors.
oProtocol.FormatSettings.DateSeparator := '-';
oProtocol.FormatSettings.ShortDateFormat := 'yyyy-mm-dd';
oProtocol.FormatSettings.DecimalSeparator := '.';