Create Future And Past Dates From Today
JavaScript's built-in Date
object can be frustrating to work with at times. It does, however, lend itself nicely to some date math. You have to familiarize yourself with some of the API and then it is a matter of addition and subtraction.
Here is today:
Let's make a copy of today and send it 30 days into the future:
Or we could jump back a few years:
Last updated