Java SQL Date getIntervalDays(String sd, String ed)

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

Description

get Interval Days

License

Open Source License

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);
    }/*from  www. j av a2s .c om*/
}

Related

  1. getFileName()
  2. getFirstDayOfNextMonth()
  3. getFirstDayOfThisMonth()
  4. getInsertarEmpleado()
  5. getInsertarEntrada()
  6. getLastDay()
  7. getMonthInt(String month)
  8. getNextDayStr(String curday)
  9. getNextDayStr(String curday)