Answers for "php to chnage date format"

PHP
0

php changr date format

$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
Posted by: Guest on February-27-2020
2

change date format php

$currDate = "2020-08-25";
$changeDate = date("d-m-Y", strtotime($currDate));
echo $changedDate;
Posted by: Guest on August-25-2020

Browse Popular Code Answers by Language