>TOMH, using the example in the link (your code could be simpler)
>
>Add a rangeFilteredTransactions to $scope and:
>
>$scope.rangeFilteredTransactions = $filter('myFilter')($scope.filteredTransactions,$scope.startDate,$scope.endDate);
>
>If $scope.startDate is null set it to a sufficiently early date. Ditto endDate
I've tried it, but now it's not working.
I've tried this
var stDate = $scope.startDate || new Date(1900, 1, 1);
var endDate = $scope.endDate || new Date(3000, 1, 1);
However, when date is set it looks like a date string and otherwise (when set using new Date()) it looks like the date and using the dates set this way is not working. How can I set the dates to look and act the same?
If it's not broken, fix it until it is.
My Blog