TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nepethya Rana
NA
335
152.8k
How do i filter my list by date ?
Jul 14 2017 2:39 AM
This is what i have written. It works for other properties with data type integer but it did not work in here for date.
LogedDate is saved as 'Date type in db. which is in format 07-14-2017
$scope.OnLogInDateChange = function (ComparerItem, DateValueFromJQueryDatePicker) {
$scope.LogFiles= $scope.allLogFiles;
let newArray = [];
switch (ComparerItem) {
case '=':
newArray = $scope.LogFiles.filter(r => r.LogedDate == DateValueFromJQueryDatePicker)
break;
case '>=':
newArray = $scope.LogFiles.filter(r => r.LogedDate >= DateValueFromJQueryDatePicker)
debugger;
break;
case '<=':
newArray = $scope.LogFiles.filter(r => r.LogedDate <= DateValueFromJQueryDatePicker)
debugger;
break;
}
$scope.LogFiles= newArray;
}
Reply
Answers (
1
)
How to fix the Get (localhost/) 404 Not found
Angular 4 and Node JS