note 36664 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Sat, 30 Jul 2005 16:48:12 +0000 |
| Subject: | note 36664 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92762@lists.php.net to get a copy of this message | ||
Note Submitter: rafaelr at veloxmail dot com dot br
----
To convert from day/month/year to year/month/day (as for MySQL), try this one-liner:
<?php $date_mysql = implode( '-', array_reverse( explode( '/',
'20/10/2003' ) ) ); ?>
I hope it helps!