We're a place where coders share, stay up-to-date and grow their careers.
Hi,
You should avoid using Moment JS it is huge...
Date-fns or other libraries have maintenance costs if there is (major) version change
Vanilla JS getDate and setDate would suffice and you can vary the days, forward or back
Hi,
You should avoid using Moment JS it is huge...
Date-fns or other libraries have maintenance costs if there is (major) version change
Vanilla JS getDate and setDate would suffice and you can vary the days, forward or back