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
Javascript months are zero-based.
December is 11. 12 will wrap around and become January of the next year.
11
12