date conversions
| From: | neil | Date: | Thu, 16 Dec 2004 06:00:23 +0000 |
| Subject: | date conversions | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37699@lists.php.net to get a copy of this message | ||
Hi
I am needing to convert a d/m/y date such as 30/11/2004 into the format that
mysql can use ie. 2004-11-20
If I try the following:
$testdate="30/11/2004";
echo date("Y-m-d", strtotime($testdate));
the result is - 2006-06-11
I can't find any other function apart from strtotime to do this.
Any ideas?
Thanks
Neil