Delphi的DateToStr StrToDate格式灵活用法
时间:2016-01-06 11:27:38
收藏:0
阅读:718
Delphi的DateToStr StrToDate格式灵活用法
2008-04-09 10:19
|
procedure TForm1.Button1Click(Sender: TObject); 其中,最重要的就是TFormatSettings这个类. 可以设置AFormat.shortDateFormat:=‘yyyymmdd‘ DateToStr(ADate,Aformat)得到字符串就是类似20080409的字符了. 如果是‘yymmdd‘则为080409的字符 |
原文:http://www.cnblogs.com/qi123/p/5104715.html
评论(0)