Hello, this code is syntactically correct, but the filed “data1” in the Dataset “Calendari” is “date”, Not datetime.
For that reason (i suppose) .ge not works. What can i do to avoid that problem?
In wixData.query, is there a way to convert “date” in “datetime”?
wixData.query("Calendari")
.eq("corso", $w("#dynamicDataset").getCurrentItem()._id)
.gt("data1", new Date())
.ascending("data1")
.find()
.then( (results) => {
$w("#datasetcalendario")
.setFilter(wixData.filter()
.hasSome("_id", results.items.map(item => item._id))
).then(()=>{
$w("#datasetcalendario")
.setSort(wixData.sort()
.ascending("data1")
)
});
});