Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Date format filter using ag-grid

Does there exist a format filter in ag-grid like this?

field : 'replacementPieceDesignation.replacementPiece.maxDate',
headerName  : "Date (max)",
cellFilter: 'date:\'MM/dd/yyyy\'',`

Thank you

like image 321
ⴱⵓⵖⴰⵏⵉ ⵔⴰⴼⵉⵇ Avatar asked Apr 02 '26 07:04

ⴱⵓⵖⴰⵏⵉ ⵔⴰⴼⵉⵇ


1 Answers

Use valueFormatter

Example (using moment): headerName: '...', field: '...', valueFormatter: (data) => moment(data.value).format('L')

like image 123
Francis Nepomuceno Avatar answered Apr 12 '26 05:04

Francis Nepomuceno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!