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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…