1.1.0 • Published 8 years ago

rdatediff v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

DateDiff

Build Status

A simple and lightweight javascript date helper that calculates the difference between two dates.

Installation

Install via bower

bower install dateDiff --save

Sample usage

<script src="/dist/rDateDiff.min.js"></script>
var date1 = "02/13/2015";
var date2 = "12/23/2015";

var getDiff = rDate.getDiff(date1, date2);
var getDays = rDate.getDiffDays(date1, date2);

console.log(getDiff);
//Outputs => 10 months 13 days

console.log(getDays + 'days');
//Outputs => 313 days

License

MIT © Rexon A. De los Reyes

Thanks and enjoy. Godspeed!