Answers for "date() in php format"

PHP
8

php mysql date format

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

php format date

<?php
  	$date = '05/05/2021';
	echo DateTime::createFromFormat("d/m/Y", $date)->format('Y-m-d');
	//2021-05-05
Posted by: Guest on May-05-2021

Browse Popular Code Answers by Language