Java Day Add addDay(java.util.Date date)

Here you can find the source of addDay(java.util.Date date)

Description

add Day

License

Open Source License

Declaration

public static java.util.Date addDay(java.util.Date date) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {

    public static java.util.Date addDay(java.util.Date date) {
        java.util.Calendar cal = Calendar.getInstance();
        cal.setTime(date);/*from w ww. j a  va 2s  .  c  om*/
        cal.add(Calendar.DATE, 1);
        return cal.getTime();
    }
}

Related

  1. addDay(Date date, int num)
  2. addDay(Date date, String pattern, int num)
  3. addDay(Date oriDate, int amount)
  4. addDay(int days)
  5. addDay(int k)
  6. addDay(java.util.Date dt, long day)
  7. addDay(String currentdate, int add_day)
  8. addDay(String d)
  9. addDay(String data)