query // how can i find _createdDate not working

I am looking to create a filter with filter.eq(“_createdDate”, 30 days I don’t know if I am doing this right.

This is the full code I am working with. It’s for a DynamicDataset to show the just the last 30 days at any given moment.


I receive a note saying that .value; is not a parameter of listRepeater but I am lost. Any Advice?

Also is that place where I add days in, is it in Days, Minutes, or Seconds.

import wixData from 'wix-data';
$w.onReady(function () {
 let value = $w("#listRepeater").value;
 let filter = wixData.filter();
    $w("#dynamicDataset").setFilter(
        filter.eq("_createdDate", 30 days)
    );
});//