rdatediff
v1.1.0
Published
A simple and lightweight date helper that calculates the difference between two dates ~12222015
Downloads
10
Maintainers
Readme
DateDiff
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