Java tutorial
//package com.java2s; import java.util.Date; public class Main { public static boolean isSameDay(Date date1, Date date2) { return date1.getDay() == date2.getDay() && date1.getMonth() == date2.getMonth() && date1.getYear() == date2.getYear(); } }