Hello,
I am incrementing current date by 14 days. I want to know the month of this new date so I can assign it to a month drop down in a form. Please Advice. Below is the code:
function choose()
{
var currDate = new Date(now.getYear(), now.getMonth(), now.getDate());
newDate = currDate + 14;
document.forms["formContact"].elements["MoveMonth"].selectedIndex = cmonth;
//I want to know how to get cmonth value
}
I am incrementing current date by 14 days. I want to know the month of this new date so I can assign it to a month drop down in a form. Please Advice. Below is the code:
function choose()
{
var currDate = new Date(now.getYear(), now.getMonth(), now.getDate());
newDate = currDate + 14;
document.forms["formContact"].elements["MoveMonth"].selectedIndex = cmonth;
//I want to know how to get cmonth value
}