Disable Dates using collection of dates

Hi Camille,

The map function will put the results of a date field in an object array (resulting from a query) into an array of dates, like the following:

let dates = results.items.map(a => a.dateRegistered);

If you want to derive just the unique dates from a date field in a collection, there is the distinct function for that.