geocoins-software
asked on
Date String to TDate
I need to convert a date string to a TDate
How to convert 'November 3, 2008' to 11/03/08
thanks
How to convert 'November 3, 2008' to 11/03/08
thanks
ASKER
This is a string returned from parsing an html file.
<td valign="top">October 28, 2008 </td></tr>
thanks
<td valign="top">October 28, 2008 </td></tr>
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ow, the FormatDateTime should be
ShowMessage(FormatDateTime ('MM/DD/YY YY', ConvertDate('November 3, 2008')));
ShowMessage(FormatDateTime
oops again and the year to YY
ShowMessage(FormatDateTime ('MM/DD/YY ', ConvertDate('November 3, 2008')));
ShowMessage(FormatDateTime
is the website always returning the date in the same language, is this the same language is the machine your app runs on (always)?
don't forget in the implementation to add the
uses StrUtils
uses StrUtils
ASKER
THANK YOU!
Why do you want to do this?