[PHP] Splitting a date string

2003-02-25 Thread Denis L. Menezes
Hello friends,

I have a date string in the format  -mm-dd  in the MySQL database.

In my edit form I need to split this date string to get $Year as   ,  $month  as 
mm and $day as dd  .

Can someone please help me with the code?

Thanks
Denis

Re: [PHP] Splitting a date string

2003-02-25 Thread Ernest E Vogelsinger
At 17:13 25.02.2003, Denis L. Menezes said:
[snip]
I have a date string in the format  -mm-dd  in the MySQL database.

In my edit form I need to split this date string to get $Year as   ,  
$month  as mm and $day as dd  .
[snip] 

list($y,$m,$d) = explode('-',$date);


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php