/ Published in: JavaScript

Returns the differencia in days between tw dates
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Diferencia en dÃas entre dos fechas Date.difDias(fecha1,fecha2) { return Math.ceil(Math.abs((fecha1.getTime() - fecha2.getTime())/(24*60*60*1000))); };
Comments
