/ Published in: PHP
Expand |
Embed | Plain Text
/* Go from MM/DD/YYYY form input to YYYY-MM-DD */ $date = $dateStartArray[2]."-".$dateStartArray[0]."-".$dateStartArray[1];
Comments
Subscribe to comments
You need to login to post a comment.

Or use this...
date("Y-m-d", strtotime($date));
'doh!