初始化日期格式

Application.UpdateFormatSettings := False; //保证格式运行中不变。//目前,这行,只支持 VCL。
with FormatSettings do
begin
ShortDateFormat := 'yyyy-mm-dd';
LongDateFormat := 'yyyy-mm-dd';
ShortTimeFormat := 'hh:nn:ss';
LongTimeFormat := 'hh:nn:ss';
DateSeparator := '-';
TimeSeparator := ':';
end;

猜你喜欢

转载自www.cnblogs.com/maweiwei/p/11265970.html