Get day number of the current date/year or given valid
Date
string format
npm i --save current-day-number
npm test
current-day-number --help
For more use-cases see the tests
Get day number of the current date/year or given valid
Date
string format
[date]
{String} every valid Date-ish string formatreturn
{Number}
Example:
var currentDayNumber = require('current-day-number');
// june 27, 2014
currentDayNumber();
//=> 177
currentDayNumber('');
//=> 177
currentDayNumber('August 07, 2015');
//=> 218
currentDayNumber('August 07, 2016');
//=> 219, cuz' year is leap
currentDayNumber('02/16/2015');
//=> 47
You can just run
current-day-number --help
for more information.
Charlike Mike Reagent
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by kdf, March 02, 2015