本文整理自网络,侵删。
打开项目代码,

在Application.Initialize后面加入对FormatSettings的设置:
Application.Initialize;
with FormatSettings do
begin
ShortDateFormat := 'yyyy-mm-dd';
LongDateFormat := 'yyyy-mm-dd';
ShortTimeFormat := 'hh:nn:ss';
LongTimeFormat := 'hh:nn:ss';
DateSeparator := '-';
TimeSeparator := ':';
end;
现在不管什么系统,都采用上面的日期与时间格式。
来源:http://blog.sina.com.cn/s/blog_44fa172f0102wmwd.html
相关阅读 >>
Delphi 2009 泛型容器单元(generics.collections)[1]: tlist<t>
Delphi system.net.httpclient 下载
更多相关阅读请进入《Delphi》频道 >>