Possible Duplicate:
How to add number of days to today’s date?
I would like to check how to add 3 days to date() so that the user cannot select any date within 3 days from today. Below is my code....
function checkDate(sender, args) {
if (sender._selectedDate < new Date()) {
alert("You cannot select a day earlier than today!");
sender._selectedDate = new Date();
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
}
}