php format date mm/dd/yyyy code example
Example 1: php convert us date to european
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
Example 2: php date format dd/mm/yyyy
date("d/m/Y", strtotime($str));
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
date("d/m/Y", strtotime($str));