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