var y = date.getYear(); <-- will give me the current year and I want to go back 2 or 3 years from the current year.
When using the method date.getYear(), the value returned by getYear() is not always 4 numbers. 1997 becomes 97 and 2000 is represented by 100.
Bad habit. I should be using...
Here is what I have so far. You can see it is displaying all of the months of 2008 - which I don't want. I want it to be dynamic and display current month+year and back 3 years in a drop down list. Example:
March 2008
Feb 2008
Jan 2008
Dec 2007
..
..
..
March 2005
function...
I'm sort of lost on how to populate a drop down list of Month Year going back three years depending on what month and year it currently is. I.e.
March 2008,
Feb 2008 ...etc
March 2005.
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.