Format earliest and latest as ISO8601

These objects, as passed through from the write api, are always datetime
instances. We should convert these using isoformat to something that
backdrop understands. Previously without this conversion they would be
outputted using the default python date format NOT ISO8601