def value_to_db_date(self, value):
    '\n        Transform a date value to an object compatible with what is expected\n        by the backend driver for date columns.\n        '
    if (value is None):
        return None
    return datetime_safe.new_date(value).strftime('%Y-%m-%d')
Transform a date value to an object compatible with what is expected
by the backend driver for date columns.
def value_to_db_date(self, value):
    '\n        Transform a date value to an object compatible with what is expected\n        by the backend driver for date columns.\n        '
    if (value is None):
        return None
    return datetime_safe.new_date(value).strftime('%Y-%m-%d')