handle datetime in format iso8601