isSameDay method
Whether this DateTime and other represent the same calendar day
(ignoring time).
final a = DateTime(2025, 6, 15, 9, 0);
final b = DateTime(2025, 6, 15, 23, 0);
a.isSameDay(b); // true
Implementation
bool isSameDay(DateTime other) => _isSameDay(other);