Display column in local date format using JSON list view formatting

Brass Contributor

I've just noticed that using toLocaleDateString([$Modified]) to display a date column in local format i.e. DD/MM/YYYY only works for column formatting, and seems to be completely ignored when using list view formatting.

 

Does anyone know a way to display a date column in the format DD/MM/YYYY via JSON list view formatting?

 

I've tried using a calculated column, but I am having trouble displaying the contents of a calculated column using JSON list view formatting also.

 

Hope someone can help.

1 Reply

Just a quick update - a little gotcha that trips me up often is that if you want to display the contents of a column using list view formatting, you still need that column to be 'visible' in the view itself. Otherwise, it will just not appear. I've now got the calculated column appearing and the date format is DD/MM/YYYY - basically I just forgot to set the calculated column to visible in the view itself. 

 

The toLocaleDateString() function still does nothing though so the question is still unanswered on that front.