Closed amboxer21 closed 3 years ago
When this year that we are working with is a leap year, cweek returns 53 when ran on the Date.parse method. The Date.commercial method does not know how to handle week 53.
You are misusing the API. You should be using d.cwyear
instead of d.year
when calling Date.commercial
.
The
Date.commercial
method does NOT account for aleap year
.