Forum Discussion
Akenefick
12 months agoGenius
This post Solved: Re: time constraint in v2 json query - Atlas (khoros.com) by vamshi9666 pointed me in the right direction.
I used Date.parse to fix my dates and now it's working!
date1 = Date.parse(date1);
date2 = Date.parse(date2);
"constraints": [
{
"board.id": boardId,
"depth":0,
"post_time": {
">=": date1
}
},
{
"depth":0,
"post_time": {
"<=": date2
}
}
]
Related Content
- 4 years ago
- 7 years ago
- 10 years ago
- 7 years ago