Re: Splitting a date string
| From: | Ernest E Vogelsinger | Date: | Tue, 25 Feb 2003 16:15:40 +0000 |
| Subject: | Re: Splitting a date string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137087@lists.php.net to get a copy of this message | ||
At 17:13 25.02.2003, Denis L. Menezes said:
--------------------[snip]--------------------
>I have a date string in the format yyyy-mm-dd in the MySQL database.
>
>In my edit form I need to split this date string to get $Year as yyyy ,
>$month as mm and $day as dd .
--------------------[snip]--------------------
list($y,$m,$d) = explode('-',$date);
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/