Java Calendar Between daysBetweenCalendarDates(final Calendar firstDate, final Calendar secondDate)

Here you can find the source of daysBetweenCalendarDates(final Calendar firstDate, final Calendar secondDate)

Description

days Between Calendar Dates

License

Open Source License

Declaration

public static long daysBetweenCalendarDates(final Calendar firstDate, final Calendar secondDate) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static long daysBetweenCalendarDates(final Calendar firstDate, final Calendar secondDate) {
        return ((secondDate.getTimeInMillis() - firstDate.getTimeInMillis()) / (1000 * 60 * 60 * 24));
    }/*  w w w  .j av a 2 s . co m*/
}

Related

  1. daysBetween(Calendar start, Calendar end)
  2. daysBetween(Calendar startTime, Calendar endTime)
  3. daysBetween(final Calendar cal1, final Calendar cal2)
  4. daysBetween(final Calendar startDate, final Calendar endDate)
  5. daysBetween(final Calendar startDate, final Calendar endDate)
  6. daysBetweenForDate(Calendar startDate, Calendar endDate)
  7. daysBetweenxX(Calendar start, Calendar end)
  8. getDaysBetween(Calendar d1, Calendar d2)
  9. getDaysBetween(Calendar d1, Calendar d2)