Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date filter is ignored
Message
 
 
À
31/05/2015 02:45:50
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01620266
Message ID:
01620444
Vues:
42
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform