Hi, thanks for the reply. I had tried using getMonth(), for some reason it is not working.
cMonth = newDate.getMonth();
alert(cMonth);
cMonth does not diplay anything when I try to display it. However, when try to get Month out of currDate using currDate.getMonth() it does set the form drop...
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 +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.