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