How to add number of days to today's date?

date, javascript, jquery

Solution

You can use JavaScript, no jQuery required:

var someDate = new Date();
var numberOfDaysToAdd = 6;
var result = someDate.setDate(someDate.getDate() + numberOfDaysToAdd);
console.log(new Date(result))

Problem

I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery.

Original source

Related problems