0

In the list, on the SharePoint website, the creation date information disappeared and only one remained. (printscreen)

enter image description here

I don't know why this happened, but it could be easily fixed by changing the column formatting. The problem is that there is only a pre-created display of the creation date, not how long ago.

enter image description here

How do I modify the JSON (see below) to calculate when it was created, please?

Thank you

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "style": {
    "box-sizing": "border-box",
    "padding": "0 2px",
    "overflow": "hidden",
    "text-overflow": "ellipsis"
  },
  "attributes": {
    "class": "sp-field-fontSizeSmall"
  },
  "children": [
    {
      "elmType": "span",
      "style": {
        "overflow": "hidden",
        "text-overflow": "ellipsis",
        "padding": "0 3px"
      },
      "txtContent": "[$Created.displayValue]",
      "attributes": {
        "class": "sp-field-fontSizeSmall"
      }
    }
  ]
}

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.