Java Day From getDays(Date date1, Date date2)

Here you can find the source of getDays(Date date1, Date date2)

Description

get Days

License

Open Source License

Declaration

public static final int getDays(Date date1, Date date2) 

Method Source Code

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

import java.util.*;

public class Main {
    public static final int getDays(Date date1, Date date2) {
        Long days = date1.getTime() - date2.getTime();
        return (int) (days / 1000 / 3600 / 24);
    }//w ww.ja  va  2 s  .c om
}

Related

  1. getDay(Date date)
  2. getDay(Date date, int day)
  3. getDay(String date)
  4. getDay0(Date date)
  5. getDayOfDate(Date date)
  6. getDays(Date sd, Date ed)
  7. getDaysBetween(int dateInt1, int dateInt2)
  8. getDaysInPastForDate(Date date)
  9. getFirstMilliOfDay(Date date)