Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static boolean isDateSize(int[] oneDate, int[] twoDate) { Calendar oneCalendar = Calendar.getInstance(); Calendar twoCalendar = Calendar.getInstance(); oneCalendar.set(oneDate[0], oneDate[1] - 1, oneDate[2]); twoCalendar.set(twoDate[0], twoDate[1] - 1, twoDate[2]); return twoCalendar.after(oneCalendar); } }