¡@

Home 

javascript Programming Glossary: notti

Why this operation with date (number of days between 2 dates) return this value?

http://stackoverflow.com/questions/7571977/why-this-operation-with-date-number-of-days-between-2-dates-return-this-value

var secondDate new Date 2011 09 30 30 september 2011 var notti secondDate.getTime firstDate.getTime oneDay if notti 1 notti.. var notti secondDate.getTime firstDate.getTime oneDay if notti 1 notti 1 else notti Math.round notti alert notti and it print.. secondDate.getTime firstDate.getTime oneDay if notti 1 notti 1 else notti Math.round notti alert notti and it print 2 correct..