Java Calendar Day sameDay(Calendar c1, Calendar c2)

Here you can find the source of sameDay(Calendar c1, Calendar c2)

Description

same Day

License

Open Source License

Declaration

static boolean sameDay(Calendar c1, Calendar c2) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    static boolean sameDay(Calendar c1, Calendar c2) {
        return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR)
                && c1.get(Calendar.DAY_OF_YEAR) == c2.get(Calendar.DAY_OF_YEAR);
    }/* www.j  a  v a2s  .  co m*/
}

Related

  1. moveToCalendarDay(Calendar cal, int day)
  2. moveToCalendarDayJust(Calendar cal)
  3. newCalendarForDay(Date date)
  4. resetToBeginningOfDay(Calendar c)
  5. sameDay(Calendar a, Calendar b)
  6. sameDay(Calendar one, Calendar two)
  7. setDayToCalendar(int days, Calendar calendar)
  8. setEndDay(Calendar cal)
  9. setStartOfDay(final Calendar calendar)