Android Calendar Add rollGetDate(Calendar calendar, int days)

Here you can find the source of rollGetDate(Calendar calendar, int days)

Description

roll Get Date

Declaration

private static Date rollGetDate(Calendar calendar, int days) 

Method Source Code

//package com.java2s;
import java.util.*;
import static java.util.Calendar.*;

public class Main {
    private static Date rollGetDate(Calendar calendar, int days) {
        Calendar calCopy = (Calendar) calendar.clone();
        calCopy.add(DATE, days);//from   w  w w .  jav a2  s. co m
        return calCopy.getTime();
    }
}

Related

  1. getDateByAddHour(String datetime, int minute)
  2. getFormatCurrentAdd(int amount, String format)
  3. tomorrow(Calendar c)
  4. yesterday(Calendar c)
  5. addToCurrent(int type, int i)