DateDiff
A simple and lightweight javascript date helper that calculates the difference between two dates ~12222015
Install / Use
/learn @xrexonx/DateDiffREADME
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
Thanks and enjoy. Godspeed!
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
