检查是否为同一天
bool isSameDay(DateTime compareDate) { return year == compareDate.year && month == compareDate.month && day == compareDate.day; }