public static function denormalize($dateString = null)
    {
        if (!empty($dateString)) {
            try {
                $dateTime = \DateTime::createFromFormat(static::DATE_FORMAT, $dateString);

                return $dateTime;
            } catch (\Exception $e) {
            }
        }

        return null;
    }
public static function denormalize($dateString = null)
    {
        if (!empty($dateString)) {
            try {
                $dateTime = \DateTime::createFromFormat(static::DATE_FORMAT, $dateString);

                return $dateTime;
            } catch (\Exception $e) {
            }
        }

        return null;
    }
public static function denormalize ( $ dateString = null ) { if ( ! empty ( $ dateString ) ) { try { $ dateTime = \ DateTime :: createFromFormat ( static :: DATE_FORMAT , $ dateString ) ; return $ dateTime ; } catch ( \ Exception $ e ) { } } return null ; }
Denormalizes a string into a DateTime object.

@param string $dateString

@return \DateTime|null
Denormalizes a string into a DateTime object .