Quantcast
Channel: Delphi Forum - Delphi Programming Kings of Code - Delphi Programming
Viewing all articles
Browse latest Browse all 173

How to use FormatDateTime

$
0
0
Hi

I'm not too experienced in Delphi, so I have a little problem using FormatDateTime. I read the help file but maybe I can't see the exaplanation how to solve my problem:

I need to convert string into date, example: 'September 15th, 2015'. 

How to convert this into TDate?



Code:
var myDate:TDate;
str:string;
begin
str:='September 15th, 2015';
myDate:=FormatDateTime(??);
end;

Any advise?

Thank you

JD

Viewing all articles
Browse latest Browse all 173

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>