I have a HTML page with 3 dropdowns for the month, day and year and I was wondering if there was a way to populate the month drop down properly depending on the month and ye
I am using this approach in my current project and found that I needed correct for round off errors. So instead of using monthLength in my code, I had to use this instead:
monthLength.toFixed(0)
For example if I have an object in which I am storing a text date field, it may look like this:
obj.month = theMonths[mm - 1] + " " + monthLength.toFixed(0) + ", " + obj.year;