bool isAtSameMomentAs(Date other) { DateTime dateTime = DateTime(year, month, day); return dateTime .isAtSameMomentAs(DateTime(other.year, other.month, other.day)); }