Convert time to iso8601 format.