I am currently learning JavaScript and Jquery and I came across a solution to subtract 2 dates from each other. However, the result is short of 30 days. How come? What am I doing i
Solution 1:
Javascript months are zero-based.
December is 11
.
12
will wrap around and become January of the next year.
Post a Comment for "Why Is There An About 30 Days Missing In Js Date Difference Script"