P,
*grumble* Forgot to send the following amendment to my original post. It
still broke with this:
All,
That should read StrToDateTime('2001-03-30 14:26:09');
However after setting the DateSeperator and TimeSeperator all is well.....
TGIF......
-- D
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Peter Hyde
Sent: Friday, 30 March 2001 15:16
To: Multiple recipients of list delphi
Subject: Re: [DUG]: StrToDateTime EConvert Error....
In Friday afternoon fall-off-a-log quiz time, Donovan wrote:
> Given the following code:
> ShortDateFormat := 'yyyy-mm-dd';
> ShortTimeFormat := 'hh:nn:ss';
> LongDateFormat := 'yyyy-mm-dd';
> LongTimeFormat := 'hh:nn:ss';
> StrToDateTime('30/03/2001 14:26:09');
> Why does the conversion tell me that the above is not a valid date and
> time?
Um, because it should be 2001-03-30, not 30/03/2001?
cheers,
peter
============================================
Peter Hyde, WebCentre Ltd & SPIS Ltd, Christchurch, New Zealand
* Web automation for online periodicals: http://TurboPress.com
* TurboNote+: http://TurboPress.com/tbnote.htm
-- easy, small, handy onscreen sticky notes
---------------------------------------------------------------------------
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"
---------------------------------------------------------------------------
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"