isSameDay static method
Implementation
static bool isSameDay(DateTime date1, DateTime date2){
bool isSameDay = date1.day == date2.day;
bool isSameMonth = date1.month == date2.month;
bool isSameYear = date1.year == date2.year;
return isSameDay && isSameMonth && isSameYear;
}