开发者

Delphi: convert TDate to other format

开发者 https://www.devze.com 2023-03-24 09:15 出处:网络
var MyDate:TDate; MyDate:=Date;开发者_开发知识库 How can I convert local myDate to my format: 31/12/2011?
var MyDate:TDate; 
   MyDate:=Date;开发者_开发知识库

How can I convert local myDate to my format: 31/12/2011?

RecodeDate?

Thanks!!!


Check the FormatDateTime function in your case you try this

FormatDateTime('dd/mm/yyyy',MyDate);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号