ensure date, time and datetime objects are formatted according to iso8601