初始化日期格式

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;

posted @ 2019-07-29 19:31  绿水青山777  阅读(353)  评论(0编辑  收藏  举报