Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
121 views
in Technique[技术] by (71.8m points)

Filter a JavaScript date by year using JSON

I need to filter a list of dates to include only record instances created in 2021. The code is in an administration tool using their API calls, here is what I have.

rbf_getViewCount("View_ID", twentyOnePlans, 
     {
     "filtering": {
             "dateFilter": [{
                "field": "CreatedAt",
                "value": "YEAR-2021|YEAR"
           }],
             "filters":[{
                "field": "Region",
                "value": "NA",
                "opCode": "EQ"
           }],
       }
   })


  function twentyOnePlans(values){
    $("#planCountNA2021").html('Created this year ' + values);
  }
question from:https://stackoverflow.com/questions/66064583/filter-a-javascript-date-by-year-using-json

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...