Serialize a Date object to its proper ISO-8601 representation.

def _serialize_date(value):
    """Serialize a Date object to its proper ISO-8601 representation."""
    if not isinstance(value, date):
        raise ValueError(u'The received object was not a date: '
                         u'{} {}'.format(type(value), value))
    return value.isoformat()