note 8830 deleted from function.gmdate by jimw
| From: | jimw@php.net | Date: | Fri, 11 Jan 2002 21:29:34 +0000 |
| Subject: | note 8830 deleted from function.gmdate by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24686@lists.php.net to get a copy of this message | ||
You could easily convert dd/mm/yyyy to mm/dd/yyyy and back with something like this: (Mind you, this
isn't the most efficient code and I didn't test it, but it should work) -- Also, this only
works if your date separator is '/', but will work with both 2 and 4 digit years.
$somedate = explode("/", $european_date);
$newdate[0] = $somedate[1];
$newdate[1] = $somedate[0];
$newdate[2] = $somedate[2];
$american_date = implode("/", $newdate);