I have lightning controller in were I want to filter a list based on a datefield. I tried the following but end up with an empty list:
My list has 2 records:
serverList[0].Startdatum__c = 1-12-2018
serverList[1].Startdatum__c = 30-7-2018
startdate = 02-08-2018
var serverListFilteredbyDate = serverList.filter(function(item) { return item[(serverList[i].Startdatum__c >= startDate)]});
var serverListFilteredbyDate = serverList.filter(function(item) {return item.Startdatum__c >= startDate;});
?