Android Calendar Compare isOverCurrentDate(int day, int month, int year, int maxDay, int maxMonth, int maxYear)

Here you can find the source of isOverCurrentDate(int day, int month, int year, int maxDay, int maxMonth, int maxYear)

Description

is Over Current Date

Declaration

public static boolean isOverCurrentDate(int day, int month, int year,
            int maxDay, int maxMonth, int maxYear) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isOverCurrentDate(int day, int month, int year,
            int maxDay, int maxMonth, int maxYear) {
        if (year > maxYear)
            return true;
        else if (month > maxMonth && year == maxYear)
            return true;
        else if (day > maxDay && month == maxMonth && year == maxYear)
            return true;
        else//from w  w w  .  j  a va2  s  . c o  m
            return false;
    }
}

Related

  1. getDateDelta(int delta, String dateFormat)
  2. isDateInInterval(Calendar date, int interval, TimeUnit type)
  3. isCurrentTimeInRange(Calendar now, Calendar start, Calendar end)
  4. isFiveMinutesOlder(Calendar updatedAt)
  5. isPast(String end)
  6. isUpdateTimeRecently(Calendar currentTime, Calendar updateTime)