This version is old school.
Please find jQuery plugins on npm.
sumdate
jQuery plugin for date manipulation. Sintax Directly invoke $.sumdate(date:String/Date,functions:[],sumValues:{},pattern:String,update:boolean); or Selector invoke $(selector).sumdate(functions:[],sumValues:{},pattern:String,update:boolean);.