SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$tempDate = explode('-','03-23-15'); $date = '20'.$tempDate[2].'-'.$tempDate[0].'-'.$tempDate[1];