I tried to get the milliseconds between the two dates by subtracting them and then dividing them 8640000 to turn them back to # of days. but got stuck when i try to get the new Date value.
Yeah, even I have this same question. Also, how do you find the date a certain number of days after a specified date?
For example, I want to find 14 days after 26 February. How do I do that?
Also, I want to check if a given date is 14 days after another certain date. For example, I want to check if 19 July(let’s say that the user inputted that date) is 14 days after 29 June, and display a message based on whether it is or isn’t.
Any ideas on how to do this?
Thanks