I have a variable called $orderdate and it is set to a date format like this mm-dd-yyyy.
In PHP how would I split this variable into $month, $day, $year?
Tha
If you are not certain about the input format you can also do the following:
$time = strtotime($input); $day = date('d',$time); $month = date('m',$time); $year = date('Y',$time);