Forum Discussion

FSomers's avatar
FSomers
Brass Contributor
Jan 27, 2023
Solved

Date/Time column displays seconds if I apply JSON inlineEditField formatting

Hello, 

 

I have two date/time columns. They must continue to display as below: 

Due to OPO internal name is DuetoOPO

Requestor Due date internal name is DueDate

 

We would like to use inlineEditField so users can just click to update due date times.

 

If I apply this JSON: 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "inlineEditField": "[$DuetoOPO]",
  "txtContent": "[$DuetoOPO]"
}

 

SharePoint displays the seconds after the due date.  How can I format so it will only show the date and time with HH:mm after applying the inlineEditField JSON??

 

2 Replies

No RepliesBe the first to reply

Resources