Here you can find the source of isMoreThenMonth(Date startDate, Date enDate)
Parameter | Description |
---|---|
startDate | a parameter |
enDate | a parameter |
Parameter | Description |
---|
public static boolean isMoreThenMonth(Date startDate, Date enDate)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static boolean isMoreThenMonth(Date startDate, Date enDate) { Calendar c = Calendar.getInstance(); c.setTime(startDate);// w w w .jav a 2 s.c o m c.add(Calendar.MONTH, 1); if (enDate.getTime() - c.getTimeInMillis() >= 0) { return true; } else { return false; } } }