I need to get the current date and then do two things. 1) add 10 days to it. 2) add 5 days to it. And i also have to leave the weekends. Means when adding 10 to that day, if any weekend appear then i have to leave that.
How can i achieve this?
Till now what i have done is:
$(document).ready(function() {
var d = new Date();
var month = new Array();
month[0] = "January";
month[1] = "February";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";
var n = month[d.getMonth()];
var dt = d.getDate();
$('#date_span').text(dt);
$('#month_span').text(n);
});