Javascript date increment
4 answers
Below is a function to increment date by one day in javascript.
function IncrementDate(date) {
var tempDate = new Date(date);
tempDate.setDate(tempDate.getDate() + 1);
return tempDate;
}
Function call ...
var currentDate = new Date();
var IncrementedDate = IncrementDate(currentDate);
0
a source to share