Try to compare values as ISO8601 dates, if parseable