I am currently working on a form which has 52 date fields.
Basically I want to reformat the date and place this in a string to insert in to a table.
I am using the following code, which does exactly what I need:
$date = "10/11/2003";
$datearray = split( "/", $date); // Split the date
$newdate = $datearray[2]."-".$datearray[1]."-".$datearray[0]; // Reformat to mySQL date format
My problem is how can I take each of the date values from the posted form and iterate through the most efficient way?