added support for ISO dates as well as datetimes