write_date_time requires the input to be in iso8601 form

this is also much more readable as an intermediate form