help - trying to setfilter .eq for dates

i have a couple of datasets on a dynamic page. one dataset has a date and i am trying to use this date to filter other dataset for another repeater. but when i try to filter it flashes for a moment the filtered contents but when page loads completely only one item is isplayed on the repeater.

$w.onReady(()=> {

$w(“#dynamicDataset”).onReady( () => {
$w(“#dataset1”).setPageSize(6)
.then( () => {
console.log(“Page size set.”);
} )
.catch( (err) => {
let errMsg = err.message;
let errCode = err.code;
} );
console.log(“The dataset is ready”);

let item = $w(“#dynamicDataset”).getCurrentItem();
let d1 = new Date(item._createdDate);

//d1.setHours(0,0,0,0);
// console.log(d);

$w("#dataset1").setFilter( wixData.filter() 
.eq("_createdDate",d1) 

/**.lt(“_createdDate”, d2)

  .or ( 

    wixData.filter().gt("_createdDate", d1) 

  )*/ 

) 

.then( () => { 

   console.log("Dataset is now filtered"); 

} ) 

. **catch** ( (err) => { 

  console.log(err); 

} ); 

});

});