[PHP] Splitting a date string
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
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