note 92095 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Wed, 08 Jul 2009 15:58:30 +0000 |
| Subject: | note 92095 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158074@lists.php.net to get a copy of this message | ||
Note Submitter: s00pcan at gmail dot com
----
I found this useful. Convert any date into a proper mysql date:
function mysqlDate($dateStr){
return date("Y-m-d", strtotime($dateStr));
}