isSameDay method

bool isSameDay(
  1. DateTime other
)

Same calendar day as other (time ignored). a.isSameDay(b)

Implementation

bool isSameDay(DateTime other) => year == other.year && month == other.month && day == other.day;