Source Code:
(back to article)
<?php $orgDate = "2020-05-15"; $newDate = date("m-d-Y", strtotime($orgDate)); echo "New date format is: " . $newDate . " (MM-DD-YYYY)"; ?>
Result:
Report an issue