Answers for "how to get date from string in php"

PHP
-4

php get date

date("Y-m-d h:i:sa")
Posted by: Guest on December-03-2020
1

create date from string php

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

Code answers related to "how to get date from string in php"

Browse Popular Code Answers by Language