AgGrid date filter is in the form of mm/dd/yyyy
, but I want to change it to yyyy/mm/dd
how can I do that?
The date filter is part of the grid's columnDefinition where I use filter: 'agDateColumnFilter'
Asked
Active
Viewed 668 times
3

matchifang
- 5,190
- 12
- 47
- 76
-
Is this what you were looking for? https://www.ag-grid.com/javascript-grid-date-component/ – medley56 Jun 24 '19 at 21:59
-
I am afraid you need to build custom date filter as cited above by @medley56. AG grid datefilter doesn't allow developers to change date format. – sandeep joshi Sep 01 '20 at 13:25
1 Answers
0
Here You Can Filter Date Like That Using Moment...
//For Filter
filterValueGetter: (params: ICellRendererParams) => {
return moment(params.data.date).format('YYYY/MM/DD');
}

Mayur Parmar
- 224
- 1
- 8