Here you can find the source of isSameDay(Calendar c1, Calendar c2)
Parameter | Description |
---|---|
c1 | a parameter |
c2 | a parameter |
public static boolean isSameDay(Calendar c1, Calendar c2)
//package com.java2s; import java.util.Calendar; public class Main { /**//from www.j a va 2 s .c o m * * @param c1 * @param c2 * @return */ public static boolean isSameDay(Calendar c1, Calendar c2) { return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) && c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH) && c1.get(Calendar.DAY_OF_MONTH) == c2.get(Calendar.DAY_OF_MONTH); } }