Date format initialization

Application.UpdateFormatSettings: = False; // guaranteed to run in the same format. // Currently, this line only supports VCL.
with FormatSettings do
the begin
ShortDateFormat: = 'YYYY-mm-dd';
LongDateFormat: = 'YYYY-mm-dd';
ShortTimeFormat: = 'HH: NN: SS';
LongTimeFormat: = 'HH: NN: SS';
DateSeparator: = '-';
in TimeSeparator: = ':';
End;

Guess you like

Origin www.cnblogs.com/maweiwei/p/11265970.html