Answers for "mysql date format php"

PHP
8

php mysql datetime

date("Y-m-d H:i:s")
Posted by: Guest on July-05-2019
0

php mysql datetime format string

$phpdate = strtotime( $mysqldate );
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );
Posted by: Guest on January-13-2021
0

format date in php

$myDateTime = DateTime::createFromFormat('Y-m-d', $dateString);
$newDateString = $myDateTime->format('d-m-Y');
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language