/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var date1 = new Date("10/13/1975"); var date2 = new Date("10/14/1979"); var date_diff = Math.abs(date2.getTime() - date1.getTime())/86400000;