Discussion:
How to set date format for initializing a TDateTime
(too old to reply)
edward
2008-08-02 23:06:52 UTC
Permalink
Hello

I am trying to create a TDateTime variable from an AnsiString. I am hoping
to have code like this:

AnsiString strDateTime = "09-01-08 01:23:00" // mm-dd-yy hh:mm:ss
TDateTime tdtDateTime = TDateTime(strDateTime);

Thanks for any suggestions.
Vladimir Stefanovic
2008-08-03 07:41:48 UTC
Permalink
Post by edward
I am trying to create a TDateTime variable from
an AnsiString.
#include <SysUtils.hpp>

Look at:
StrToDateTime()

Also Look at:
StrToDate()
StrToTime()
StrToDateDef()
StrToTimeDef()


...
Best Regards,
Vladimir Stefanovic

Loading...