protected function decodeDateTime($str) {
        $date = DateTime::createFromFormat(self::DATETIME_FORMAT, $str);
        return false === $date ? null : $date;
    }
protected function decodeDateTime($str) {
        $date = DateTime::createFromFormat(self::DATETIME_FORMAT, $str);
        return false === $date ? null : $date;
    }
protected function decodeDateTime ( $ str ) { $ date = DateTime :: createFromFormat ( self :: DATETIME_FORMAT , $ str ) ; return false === $ date ? null : $ date ; }
Decode a datetime string.

@param string $str The string.
@return DateTime Returns the decoded string into DateTime.
Decode a datetime string .