php code to echo the created date from string 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);