php to create date with year month day code example
Example: create date from string php
$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);
$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);