dateism
For lack of a better name...
Premise
You are in a situation where you need to get lots of dates relative to a point in time and in the same format.
Usage
npm install dateism
or yarn install dateism
dateism must be initialised with a format to use and optionally a seed date. If you don't supply a seed date then the date right now will be used.
Example
const dateism = require('dateism')
const dates = dateism('DD MMM YYYY', new Date('1947-02-15'))
dates.addDays(-5)
dates.threeDaysAgo()
dates.twoDaysAgo()
dates.today()
dates.tomorrow()
dates.addDays(5)