What Regex should i use to separate a datetime of 2009-01-30 04:57:18
so that i can store it in a list?
Code: Select all
$date = "2009-01-30 04:57:18";
list ($hour,$minute,$second,$month, $day, $year) = preg_split(" what should come here? ", $date);
$nudate= mktime ($hour,$minute,$second,$month,$day,$year);So i need the complete regex for this that will put all six vars in the mktime format, help much appreciated.