I don't know if these will do what you want - but should help
If your converting a lot of Dates in one go - it may be worth while temporarily
changing the ShortDateFormat and using the standard DateToStr stuff.
If it is an occasional requirement - what about using EncodeDate and DecodeDate.

HTH

Regards
Paul

[EMAIL PROTECTED]
Ph: (04) 576-6822

T.A.B. National Office
106-110 Jackson Street
Petone
New Zealand



____________________Reply Separator____________________
Subject:  [DUG]:  changing a string containing a USA date to an Aus...
Author:   [EMAIL PROTECTED]
Date:          21/03/2001 12:07

     Subject:
     [DUG]:  changing a string containing a USA date to an Aussie date
     ---------------------------------


     I have a slightly large problem of changing a Date in a string from being
     mm/dd/yy to dd/mm/yy because of the regional settings on the computers here
     use aussie english and not american. The Function StrToDateTime uses the
     american date format mm/dd/yy and so when i use that function it raises an
     exception because the settings on the computer use dd/mm/yy. If you
     understand my problem, I would love some assistence.

     Thanks in advance

     Damien Long

     ---------------------------------------------------------------------------
         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"(See attached file: att1.eml)

att1.eml

Reply via email to