Answers for "get php date from give date with format"

PHP
1

create date from string php

$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);
Posted by: Guest on October-22-2020
0

php code to display current date and time in different formats

echo date('Y.m.d H:i:s');
Posted by: Guest on August-11-2020

Code answers related to "get php date from give date with format"

Browse Popular Code Answers by Language