I have SharePoint List in a modern experience SharePoint online site and I want to use JSON column formating to display the date in dd/mm/yyyy format without time in SharePoint List.
I've tried using toLocaleDateString() and toDateString() to show date as dd/mm/yyyy but still do nothing
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=Date(@currentField,toDateString())"
}
Is it possible to format the date column in dd-MM-yyyy using JSON column formatting?