Answers for "how to change date format in php for retrieving data from mysql"

PHP
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

Code answers related to "how to change date format in php for retrieving data from mysql"

Browse Popular Code Answers by Language