Android Day Get getIntervalDays(String sd, String ed)

Here you can find the source of getIntervalDays(String sd, String ed)

Description

get Interval Days

Declaration

public static long getIntervalDays(String sd, String ed) 

Method Source Code

//package com.java2s;

public class Main {
    public static long getIntervalDays(String sd, String ed) {
        return ((java.sql.Date.valueOf(ed)).getTime() - (java.sql.Date
                .valueOf(sd)).getTime()) / (3600 * 24 * 1000);
    }/* www . j  av  a2  s.co  m*/
}

Related

  1. getStartNextDay(Date d2)
  2. getNextDay(Date d2)
  3. getNextDateForDay(int calendarDay)
  4. getHashByDay(String date)
  5. getJulianDay(Calendar cal)
  6. isBirthday(Calendar cal)
  7. getBeforeDate(Date date, int days)
  8. getAfterDate(Date date, int days)
  9. fromJulianDay(double julianDay)