Simplify date formatting

formatDateString now tries to format a ISO 8601 string itself, so this
is not required to be done separately.