Delphi 很方便的String转DateTime函数

System.Variants

VarToDateTime();

 

测试

s:='2019-05-13';
a:=VarToDateTime(s);
ShowMessage(DateTimeToStr(a));

支持多种格式

posted @ 2022-02-13 21:43  只如初见o  阅读(728)  评论(0)    收藏  举报