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