start-date

1.0.0 • Public • Published

start-date

Returns the current date or a date prior or after the current date in DD-MM-YYYY format.

Install

npm install --save start-date

Usage

const date = require('start-date');

date();
// today's date (eg. 01-05-2017)

date(-3);
//Three days ago (eg. 25-04-2017)

date(3);
//Three days in the future (eg. 04-05-2017)

Related

before-today

License

MIT

Package Sidebar

Install

npm i start-date

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ryandavison