elhidery

Results 3 comments of elhidery

Hello, If you to be zero based you can use Math.floor instead of math.ceil and remove -1 :) var now = new Date(); var start = new Date(now.getFullYear(), 0, 1);...

Hello again, I apologize for or misunderstanding. This below line of code var d = new Date(this.getFullYear(), 0, 1); This.getFullYearr returns the current year which is "2018" the "0" refers...

I ran a few test case scenarios and concluded that it is due to how JS subtracts. The test scenario that made this obvious was the following: var d1 =...