def datetime_from_iso_format(string):
match = DATE_ISO_REGEX.match(string)<EOL>if match:<EOL><INDENT>date = datetime.datetime(year=int(match.group(DATE_ISO_YEAR_GRP)),<EOL>month=int(match.group(DATE_ISO_MONTH_GRP)),<EOL>day=int(match.group(DATE_ISO_DAY_GRP)),<EOL>hour=int(match.group(DATE_ISO_HOUR_GRP)),<EOL>second=int(match.group(DATE_ISO_SEC_GRP)),<EOL>minute=int(match.group(DATE_ISO_MIN_GRP)))<EOL>return date<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Return a datetime object from an iso 8601 representation.
Return None if string is non conforming.