Is there a way to have a column display a date as DD MMM YYYY and the searchpane display only YYYY?

Is there a way to have a column display a date as DD MMM YYYY and the searchpane display only YYYY?

badijdbadijd Posts: 9Questions: 4Answers: 0
edited November 2023 in Free community support

Currently call a function to format a date column.
if (type == 'display') {
return moment(data).format('DD MMM YYYY');
}else if (type == 'filter') {
return moment(data).format('YYYY');
}

The searchpanes does combine the dates into YYYY but uses the first record day and month values to display in the pane (odd behavior). How do I only display YYYY in the searchpanes?

Answers

Sign In or Register to comment.