def date_to_um_date(date):
    """
    Convert a date object to 'year, month, day, hour, minute, second.'
    """
    assert date.hour == 0 and date.minute == 0 and date.second == 0
    return [date.year, date.month, date.day, 0, 0, 0]
