I have a variable that is a date... reads something like this "04142004" what would be the easiest way to break that up into three seperate variables; month, day, and year?
help...
Im assuming this is in the format of DDMMYYY
$day = substr($string, 0, 2); $month = substr($string, 2,2); $year = substr($string, 4, 4);