Hi there, i need help with filtering data from a collection/dataset such that it displays only items with Today’s date. I have tried the code below but the table on the site is coming up blank.
import wixData from “wix-data” ;
var d = new Date ();
d . setHours ( 0 , 0 , 0 , 0 );
var todayStr = ( d . getMonth ()+ 1 ) + “/” + d . getDate () + “/” + d . getFullYear ();
console . log ( todayStr );
$w . onReady ( function () {
$w ( “#dataset1” ). setFilter ( wixData . filter (). eq ( “sort” , 2 ));
console . log ( $w ( “#dataset1” ));
});