def midnight(date):
    """Returns a copy of a date with the hour, minute, second, and
    millisecond fields set to zero.

    Args:
        date (Date): The starting date.

    Returns:
        Date: A new date, set to midnight of the day provided.
    """
    return date.replace(hour=0, minute=0, second=0, microsecond=0)