Inverse function of FormatDateTime

Posted by Salvador on Stack Overflow See other posts from Stack Overflow or by Salvador
Published on 2010-03-23T20:42:51Z Indexed on 2010/03/23 20:53 UTC
Read the original article Hit count: 203

Filed under:

i am looking an funtion to reverse any string (YYYYMDD,YY/MM/DD,YYMMDD,...) created by the function FormatDateTime to datetime.

example

i have a string-date in format YYYYMMDDcreated by FormatDateTime

mydatestr:=FormatDateTime('YYYYMMDD',Mydate); 

now how i can convert mydatestr to DateTime again?

© Stack Overflow or respective owner

Related posts about delphi