Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static boolean isSameOnlyDay(Calendar start, Calendar end) { return start.get(Calendar.DAY_OF_MONTH) == end.get(Calendar.DAY_OF_MONTH); } }