Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date range filter

var startDate = new Date("2015-08-04");
var endDate = new Date("2015-08-12");

var resultProductData = product_data.filter(a => {
  var date = new Date(a.ProductHits);
  return (date >= startDate && date <= endDate);
});
console.log(resultProductData)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #range #filter
ADD COMMENT
Topic
Name
8+5 =