'Attempt to convert to utc-iso time string using date methods.'

@staticmethod
def encode_as_date(obj):

    try:
        time_string = obj.isoformat()
    except AttributeError:
        raise NotEncodable
    else:
        return iso_to_plotly_time_string(time_string)
