Java Date After afterOneDay(Date depdt)

Here you can find the source of afterOneDay(Date depdt)

Description

after One Day

License

Apache License

Declaration

public static Date afterOneDay(Date depdt) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date afterOneDay(Date depdt) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(depdt);/*from  w ww  .j ava 2s  .co  m*/
        calendar.add(Calendar.DAY_OF_MONTH, 1);
        return calendar.getTime();
    }
}

Related

  1. after(Date point, Date when)
  2. afterDay(final Date date1, final Date date2)
  3. afterMonth(Date dateTime)
  4. dateAfter(Date date, int years, int months)
  5. dateAfter(Date origDate, int amount, int timeUnit)
  6. dateAfterNMonths(Date dt, int n)
  7. daysAfter(Date dateInst, int numDays)