Android Date Compare dateAfterDate(Date date, long days)

Here you can find the source of dateAfterDate(Date date, long days)

Description

date After Date

Declaration

public static Date dateAfterDate(Date date, long days) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static Date dateAfterDate(Date date, long days) {
        long d = date.getTime();
        d += days * 86400000;/* w w  w .  j  a  va 2  s. com*/
        return new java.util.Date(d);
    }
}

Related

  1. compareCurrentDate(Date currentDate)
  2. compareDate(Date date1, Date date2)
  3. compareDate(Date date1, Date date2, int what)
  4. compareDate(String date1, String date2, int what)
  5. dateBeforeDate(Date date, long days)
  6. isSameDay(Date dateSource, Date dateDesti)
  7. isSameInstant(Date date1, Date date2)
  8. needsMidnightCountdown()