def date_value(dt):
    """
    Returns a string representation of a date for C3

    This is like .isoformat, only we strip the timezone info and
    output the time portion (as 00:00) for dates to make it easy
    for C3 to parse.
    """
    return dt.strftime('%Y-%m-%dT%H:%M:%S')
