Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const sDate = moment(this.state.startDate,'YYYY-MM-DD').format('YYYY-MM-DD');
- const eDate = moment(this.state.endDate,'YYYY-MM-DD').format('YYYY-MM-DD');
- if(item.created ? item.created : 0 >= sDate|| item ? item.resolution : 0 <= eDate){
- if(this.state.startDate && this.state.endDate){
- // if start date and end date is defined
- } else {
- // filter all the data
- }
Add Comment
Please, Sign In to add comment