Here you can find the source of sameDay(Calendar c1, Calendar c2)
static boolean sameDay(Calendar c1, Calendar c2)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { static boolean sameDay(Calendar c1, Calendar c2) { return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) && c1.get(Calendar.DAY_OF_YEAR) == c2.get(Calendar.DAY_OF_YEAR); }/* www.j a v a2s . co m*/ }