note 36664 added to function.date
| From: | rafaelr at veloxmail dot com dot br | Date: | Sat, 18 Oct 2003 00:03:48 +0000 |
| Subject: | note 36664 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58779@lists.php.net to get a copy of this message | ||
If you are heating your head looking a way to convert day/month/year to year-month-day, without to
write lines and lines of code to convert, this line will solve your problem.
$date_in_mysql_format =
implode('-',array_reverse(split('[/]','20/10/2003')));
I hope it help!
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36664
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36664&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36664&report=yes
Search -- http://master.php.net/manage/user-notes.php