Return to Snippet

Revision: 62398
at February 21, 2013 02:40 by agarcim


Initial Code
//Diferencia en días entre dos fechas
  Date.difDias(fecha1,fecha2) {
    return Math.ceil(Math.abs((fecha1.getTime() - fecha2.getTime())/(24*60*60*1000)));  
  };

Initial URL

                                

Initial Description
Returns the differencia in days between tw dates

Initial Title
Difference in days between two dates

Initial Tags
javascript

Initial Language
JavaScript