Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

subtracting two date objects in javacript

function findDayDifference(date1, date2) {
	// always round down
  return Math.floor((Math.abs(date2-date1))/(1000*60*60*24));
}
 
PREVIOUS NEXT
Tagged: #subtracting #date #objects #javacript
ADD COMMENT
Topic
Name
2+4 =