dates-of-today
v1.0.0
Published
Get today's date as an object
Downloads
96
Readme
dates-of-today
Get today's date as an object.
Installation
$ npm install dates-of-today
Usage
const today = require('dates-of-today')
today()
// => {
// year: 2015,
// month: '07',
// day: '15',
// date: '2015-07-15'
// }
API
date = today()
Get today's date as an object. Months and days are prefixed with leading zeros.