Posted by Vincent Delporte on 01/11/07 19:39
On Thu, 11 Jan 2007 04:06:08 GMT, boclair <boclair@bigpond.net.au> wrote: >$dateorig = "03/21/2005"; > > >$new_dateorig = date("Y-m-d", strtotime($dateorig)); > >print $new_dateorig; > >reports 2005-03-21. But like I said, it doesn't work for me, because the server on which the site is hosted assumes dates are mm/dd/yyyy, but we use dd/mm/yyyy over here, so strtotime() is wrong.
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming