protected function decodeDate($str) {
        $date = DateTime::createFromFormat("!" . self::DATE_FORMAT, $str);
        return false === $date ? null : $date;
    }
protected function decodeDate($str) {
        $date = DateTime::createFromFormat("!" . self::DATE_FORMAT, $str);
        return false === $date ? null : $date;
    }
protected function decodeDate ( $ str ) { $ date = DateTime :: createFromFormat ( "!" . self :: DATE_FORMAT , $ str ) ; return false === $ date ? null : $ date ; }
Decode a date string.

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