2 namespace Utility\Import;
4 class DateTime implements FieldInterface
6 private $_dateTimeFormat = 'Y-m-d h:i:s';
8 public function __construct($format)
10 $this->_dateTimeFormat = $format;
13 public function parse($value)
15 return \DateTime::createFromFormat($this->_dateTimeFormat, $value);