current-day-number

Get day number of the current date/year or given valid `Date` string format

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
current-day-number
311.0.67 years ago8 years agoMinified + gzip package size for current-day-number in KB

Readme

!npmnpmjs-imgnpmjs-url !mit licenselicense-imglicense-url !build statustravis-imgtravis-url !coverage statuscoveralls-imgcoveralls-url !deps statusdaviddm-imgdaviddm-url

Get day number of the current date/year or given valid Date string format

Install

npm i --save current-day-number
npm test
current-day-number --help

API

For more use-cases see the tests

currentDayNumber

Get day number of the current date/year or given valid Date string format

  • [date] {String} every valid Date-ish string format
  • return {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

CLI

You can just run current-day-number --help for more information.

current day number cli image

Author

Charlike Mike Reagent

License !MIT licenselicense-imglicense-url

Copyright (c) 2014-2015 Charlike Mike Reagentcontrib-more, contributorscontrib-graf.
Released under the MITlicense-url license.

Powered and automated by kdf
, March 02, 2015