Delphi的字符串日期互转方法(DateToStr/StrToDate)
Delphi下时间和字符串互转用使用DateToStr或者StrToDate函数。
这两个函数没有php下的date函数方便和灵活。不过有时候也确实需要用到。
我写的下面这几句代码基本上体现了DateToStr比较完整的用法
aFormat.ShortDateFormat := ‘yyyy/mm/dd hh:mm:ss’;
aFormat.DateSeparator := ‘/’;
ShowMessage( DateToStr( now, aFormat) );
10月 14th, 2009 at 15:39 #nfl jerseys
学习了!