Aniket Narvankar

Aniket Narvankar

  • 559
  • 2.1k
  • 606.3k

Syntax Error in Jquery

Jul 26 2020 1:26 PM
I have .filter to pick data between two given dates,code is working in chrome and firefox but giving error in Internet explorer
 
Below is code 
 
var resultWeekelyData = $scope.data1W.filter(a => {
var date = new Date(a.date);
return (date >= startDate && date <= endDate);
});
 
$scope.data1W is an array 
 
Please let me know how to filter data between two given date using jquery.
 
Stuck on this.