php get date with string code example
Example 1: php get date
date("Y-m-d h:i:sa")
Example 2: create date from string php
$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);
date("Y-m-d h:i:sa")
$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);