def _date_from_iso8601_date(value):
 return datetime.datetime.strptime(value, '%Y-%m-%d').date()

def _date_from_iso8601_date ( value ) : return datetime . datetime . strptime ( value , '%Y-%m-%d' ) . date ( )
convert a iso8601 date string to native datetime date :type value: str .