Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

date-super

vijithbk8ISC1.0.4

Date functions mainly - counting no of days between 2 dates

date, datesuper, date-super, super-date, date-functions, datefunctions, date-methods, datemethods, date-extension, dateextension, date-operations, dateoperations, date-diff, datediff, vijith, vijith bk, vijith balakrishnan, vijith b, date, date utility, date utilities, date additional

readme

date-super

date-super provides method to find the number of days between 2 dates in a browser and inside nodejs.

date-super exposes a method daysBetween(date1, date2). Both the arguments should be date objects.

var dateSuper = require("date-super");
var date1 = new Date("01/30/2001");
var date2 = new Date("02/30/2001");

var days = daysBetween(date1, date2);
console.log(days)

The library is available as an npm package. To install the package run:

npm install date-super --save
# or with yarn
yarn add date-super

Docs

For any queries please email to: vijubalak@gmail.com

License

MIT © Vijith BK