摘要: delphi 时间格式返回2010-01-26 19:28Windows中的时间格式还真不少,什么长日期、短日期,两位年份、四位年份等等,在Delphi中可用FormatDateTime函数输出这些格式,下面介绍它的用法:function FormatDateTime(const Format: string; DateTime: TDateTime): string;Format参数是一个格式化字符串。DateTime是时间类型。返回值是一种格式化后的字符串,重点来看Format参数中的指令字符:c 以短时间格式显示时间,即全部是数字的表示 FormatdateTime('c' 阅读全文
posted @ 2012-11-07 11:59 许小东 阅读(678) 评论(0) 推荐(0)