added fns to convert dates to iso-strings