I take back that last suggestion - fast!!

datetostr will give '100999' but not go back the other way - a separator is
required

-----Original Message-----
From: Mike Osborne <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Friday, September 10, 1999 10:07 PM
Subject: Re: [DUG]: Dates


Define the Short Date Format without a separator.

ShortDateFormat := 'ddmmyy';

then proceed with StrtoDate() for your dates into database

then back to usual
ShortDateFormat := 'dd/mm/yy';

or, if you want to be Y2K compliant
ShortDateFormat := 'dd/mm/yyyy';

Regards,
Mike


-----Original Message-----
From: P Sheehan <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Friday, September 10, 1999 6:17 PM
Subject: [DUG]: Dates


Hi all

I have a couple of thousand dates in string format  ie '100999' in a
database field.
To convert to Date format I need to insert a charater as a date separator as
defined by the date separator global variable.

How do I get the "/" into the string so I can do a StrtoDate().
any help appreciated


Patrick Sheehan
P+A Computing
Patrick Anthony Associates Ltd
166 Kitchener Rd Milford
PO Box 31-831 Milford
[EMAIL PROTECTED]     [EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to