Im trying to split a date formatted in mmddyyyy into 3 usable variables $month $day and $year
So a function like
function splitdate($date, $var){
//do something here :P
}
and to get the day would be like $day = splitdate(12051978, 'day');
Anyone have any idea how to do it?