Question

I have a calculated column [Due date] with a simple formula, =[Event date]+13, and it's set to The data type returned from this formula is: Date and Time.

However, it doesn't have the Display Format: Standard / Friendly option that ordinary non-calculated Date and Time columns have. And I'd like it to use that friendly format.

Has anyone ideas for applying SharePoint's friendly date formatting to a calculated date column - e.g., with JSON column formatting, with something in the column's formula etc? I've seen some PowerShell snippets about friendly date formats but I'm hoping for something easier to manage.

Much obliged for any and all feedback!

Was it helpful?

Solution

Create Due Date as Date & Time field instead of calculated field then updated due date field my Workflow or MS flow using that using can display Friendly date time format in due date

OTHER TIPS

You can use toLocaleDateString() function/operator in Column formatting to convert your date in friendly format.

According to official documentation,

toLocaleDateString(): returns a language sensitive representation of just the date portion of a date

"txtContent":"=toLocaleDateString(@now)" ---> results vary based on user's locale, but en-us looks like "2/5/2019"

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top