Saturday, 27 December 2014

How to add number of days to current date

//Add number of days to current date
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
cal.add(Calendar.DATE, 15);
cal.getTime()

No comments:

Post a Comment