(which use the GNU date formatting)
this can handle
<?php
echo strtotime ("now"), "\n";
echo strtotime ("10 September 2000"), "\n";
echo strtotime ("+1 day"), "\n";
echo strtotime ("+1 week"), "\n";
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime ("next Thursday"), "\n";
echo strtotime ("last Monday"), "\n";
?>Neven MacEwan (B.E. E&E) Ph. 09 621 0001 Mob. 0274 749062
David O'Brien wrote:
Unfortunately, vartodatetime only works with some formats.
Dave
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Friday, 18 June 2004 12:30 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Date conversions
Isn't their a VarToDateTime which does this vague VB ish type conversion
Neven MacEwan (B.E. E&E) Ph. 09 621 0001 Mob. 0274 749062
David O'Brien wrote:
-Hi all,
Is there any easy way of converting a date string into a TDate?
i.e. "Fri, 18 Jun, 2004"
Dave.
-----------------------------------------------------------------------
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
