Using moment js in Data View Filter

I have a date view that looks like this:

<dmx-data-view id="dv_completed_today" dmx-bind:data="sc_getTasks.data.api1.data.List" filter="moment(mx_Custom_46).isSame(moment(), 'day')"></dmx-data-view>

mx_Custom_46 is a field which exists on the data and has a format like “2020-10-02 15:52:00” . However this query doesn’t work. There is an object in the data which satisfies this value, but it is not getting filtered. The result shows zero entries.

How can I make this work?

Community Page
Last updated: