Matches the date from a HasDate.
Matcher hasDate(Object? year, [Object? month = 1, Object? day = 1]) => allOf(hasYear(year), hasMonth(month), hasDay(day));