Use momentJS and rest easy unless you're adding months.
d
Danny Kovene
10/29/2021, 11:50 PM
Why except for months?
c
creece
11/01/2021, 2:58 AM
Months have different days and it doesn't take that into account. Its a limitation of momentjs.
d
Danny Kovene
11/01/2021, 1:33 PM
So if the date is January 31 and you add a month there is no February 31. I thought it would set the date to February 28 (29 leap year) but never checked that.