Closed ppascualv closed 3 years ago
You should be able to use regular JavaScript Date objects. You don't need to format then yourself.
An example of a filter using a JS date object:
const filter = { created_at: { $gte: new Date('2021-03-14') } };
This filter will return all documents that have created_at
date of 14th of March 2021 or later.
Thanks!
I'm trying to use DateTime filter and it is are returning an empty chart I'm assuming the filter is not well interpreted by Mongo.
Code examples of what I already tried: