note 2533 modified in date by ronabop
| From: | ronabop@php.net | Date: | Fri, 01 Sep 2000 04:23:00 +0000 |
| Subject: | note 2533 modified in date by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3869@lists.php.net to get a copy of this message | ||
I was having problems converting a string date to a storable date. If anyone's interested,
here's how I did it:
$newsplit = explode("/", $mydate);
$gooddate = date("Y-m-d",mktime(0,0,0,$newsplit[0],$newsplit[1],$newsplit[2]));
Hope that helps someone.
http://www.php.net/manual/function.date.php