>Hi all,
>
>Who knows the answer to this simple problem?
>
>Has anybody any code to do a String-To-Date conversion using 
>ShortDateFormat?

I've thrown together(quite literally) a function called CVDate() which 
takes the form:

function CVDate(const DStr : string; IncTime : boolean; var ActualDate :
TDateTime) : string;

Which will interpret the date in DStr correctly as long as it is unambiguous
it will then
use the short date format. It returns the date in the form dd mmm yyyy
hh:mm:ss
and accepts must forms of date entry. I can post the source to you if you
wish. 

[EMAIL PROTECTED]

medge.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to