Filtering a collection by date equal or greater that current date?

Hi @ocphotog i was having trouble with this aswell, but a friend helped me with the following code:

import wixData from ‘wix-data’;

$w.onReady(function () {
$w(“#MyCollection”).onReady(() => {
let sToday = new Date().toISOString().split(‘T’)[0];
$w(“#MyCollection”).setFilter(wixData.filter().ge(“DATEfieldkey”, sToday));
});
});

Just replace, MyCollection & DATEfieldkey