PROBLEM: Custom formatted date is not filterable (though it is sortable).
The date data comes from in firebase seconds(same as a UNIX timestamp), nanoseconds format & is then translated first into a Javascript date/time format(Tue Apr 13 2021 00:27:20 GMT-0400 (Eastern Daylight Time)), then the format in the screenshot (Apr 13, 2021).
My expectation is that the issue I'm running into is that I can't format the date this way (Apr 13, 2021) and filter - the only way to filter is to format the date MM/DD/YYYY.
Column definition:
{
flex: 1,
field: 'created',
headerName: 'Created',
type: 'date',
valueFormatter: (params: GridValueFormatterParams) => {
// first converts to JS Date, then to locale option through date-fns
return formatDate(params.value);
}
},
Is there any way to make this column filterable without formatting the date as MM/DD/YYYY?
EDIT: I tried formatting the date as MM/DD/YYYY & the filter still fails. See screenshots below - there should be multiple dates that match the filter.
Prior to filter: Data Grid with 4/13 date
With filter: Data Grid with filter applied & no matching results