Javascript: Date object only accepts month values 1-12, not 0-11

When running a JS script with an expression like “new Date(2013, 0, 1)” I get an exception: “Year, Month, and Day parameters describe an un-representable DateTime.” which apparently is caused by the month parameter value 0 (zero). Similarly, the expression “new Date(2013, 12, 1)” is accepted (and “new Date(2013, 13, 1)” is not). The methods setFullYear() and setMonth() return the same exception if a month value of 0 (zero) is used.

I have tried the latest (?) DLL version (just downloaded).


Thank you for the report. Corresponding function implementations were fixed.

Code changes and corresponding tests were pushed to the github repository. In case you need the rebuilt version please contact us via suppor@ and provide your login on the site

Thanks for follow-ups

Hello Anton, thanks for the quick reply - I’ll try and get the latest rebuilt version, and let you know of any other issues (if there are any). Bob