Test for all ISO 8601 date formats and only accept valid dates, e.g. 2016-02-29, but not 2016-02-30 or 2017-02-29.