See this link: https://css-tricks.com/everything-you-need-to-know-about-date-in-javascript/