component/util.js
/* 
  Check wheter two date objects are within the same day
*/
Check wheter two date objects are within the same day
Check wheter two date objects are within the same day
function isSameDay(date1, date2) {
  return date1.getFullYear() == date2.getFullYear() &&
    date1.getMonth() == date2.getMonth() &&
    date1.getDate() == date2.getDate();
}
function isSameDay ( date1 , date2 ) { return date1 . getFullYear ( ) == date2 . getFullYear ( ) && date1 . getMonth ( ) == date2 . getMonth ( ) && date1 . getDate ( ) == date2 . getDate ( ) ; }
Check wheter two date objects are within the same day
Check wheter two date objects are within the same day