Hello,
I have a date column formatted as YYYY-MM-DD to be understood as date for AG Grid.
Filtering works well, but I would like the filter date format (2) to be consistent with the displayed dates format (1):
I.e. instead of mm / dd / yyyy I would like to have yyyy / mm / dd . Because otherwise it’s weird for the user experience.
How can I achieve that ? I looked into filterParams here, but can’t find the option.
Note that I don’t want to change the format in the column (it can be done with valueFormatter or valueGetter) but I want to change the way that it is formatted in the filter popup.
Edit: I think the solution lies in localization but this still do not work:
grid = dag.AgGrid(
id="sales_grid",
rowData=df.to_dict("records"),
columnDefs=column_defs,
dashGridOptions={
"localeText": {
"equals": "EQUALS", # it works
"dateFormatOoo": "yyyy/mm/dd", # it doesn't work
}
}
)
Thank you