Java Date After isDateAfter(Date date1, Date date2)

Here you can find the source of isDateAfter(Date date1, Date date2)

Description

is Date After

License

Open Source License

Declaration

public static boolean isDateAfter(Date date1, Date date2) 

Method Source Code


//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static boolean isDateAfter(Date date1, Date date2) {
        Calendar cal1 = Calendar.getInstance();
        Calendar cal2 = Calendar.getInstance();

        cal1.setTime(date1);//from   www. j  a  v a 2  s . co  m
        cal2.setTime(date2);

        return cal1.after(cal2);
    }
}

Related

  1. isAfter(Date d1, Date d2)
  2. isAfter(Date date1, Date date2)
  3. isAfterForDay(Date date, Date ref)
  4. isAfterHour(Date source, int hour)
  5. isAfterToday(Date dag)
  6. isEqualOrAfterTomorrow(Date d)
  7. isInSameDayOrAfter(Date d1, Date d2)
  8. isNotAfter(Date sDate, Date eDate)
  9. isTimeAfter(Date time1, Date time2)