Java Calendar Day isSameDay(final Calendar cal1, final Calendar cal2)

Here you can find the source of isSameDay(final Calendar cal1, final Calendar cal2)

Description

is Same Day

License

Open Source License

Declaration

public static boolean isSameDay(final Calendar cal1, final Calendar cal2) 

Method Source Code

//package com.java2s;
// ProjectForge is dual-licensed.

import java.util.Calendar;

public class Main {
    public static boolean isSameDay(final Calendar cal1, final Calendar cal2) {
        return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR)
                && cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);
    }//  www  .  j a  va 2  s.co m
}

Related

  1. isSameDay(Calendar cal1, Calendar cal2)
  2. isSameDay(Calendar cal1, Calendar cal2)
  3. isSameDay(Calendar day1, Calendar day2)
  4. isSameDay(Calendar dayOne, Calendar dayTwo)
  5. isSameDay(Calendar today, Date now)
  6. isSameDay(final Calendar date1, final Calendar date2)
  7. isSunday(GregorianCalendar date)
  8. isTheSameDay(Calendar dayOne, Calendar dayTwo)
  9. isToday(Calendar creationDate)