Android Date Compare dateBeforeDate(Date date, long days)

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

Description

date Before Date

Declaration

public static Date dateBeforeDate(Date date, long days) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static Date dateBeforeDate(Date date, long days) {
        long d = date.getTime();
        d += days * 86400000;//from   w  ww  .java2  s. c o m
        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. dateAfterDate(Date date, long days)
  6. isSameDay(Date dateSource, Date dateDesti)
  7. isSameInstant(Date date1, Date date2)
  8. needsMidnightCountdown()
  9. dateDiffer(Date date1, Date date2)