Show timestamp instead of time ago on My Requests v2 Widget

Daniel R2
Kilo Sage

Hi

 

We would like to show the actual time stamp of when the request was updated instead of the time ago, as you can see in the screenshot it shows 3 days ago in the updated column, but we would actually like to show the date/time

We tried updating the below widget body html in the following widget:

 

https://<instance-name>.service-now.com/now/nav/ui/classic/params/target/sp_widget.do%3Fsys_id%3D8cc0df25875023000f220cf888cb0bb5%26sysparm_record_target%3Dsp_widget%26sysparm_record_row%3D3%26sysparm_record_rows%3D3%26sysparm_record_list%3DnameCONTAINSMy%2Brequ%255EORDERBYDESCsys_updated_on 

 

We tried taking some inspiration from some other community/support docs where the timestamp has been updated on other widgets, but it did not work when we tried changing the below line on this widget:

<sn-time-ago timestamp="::item.updated_on"/>

 

Does anybody know what is required to add/replace to this widget to show the time stamp instead of the time ago on the updated column?

 

 

 

DanielR2_0-1692819969433.png

 

 

DanielR2_2-1692820156836.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

Hi @Daniel R2,

 

Replace <sn-time-ago timestamp="::item.updated_on"/> by {{::item.updated_on}}.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

4 REPLIES 4

Peter Bodelier
Giga Sage

Hi @Daniel R2,

 

Replace <sn-time-ago timestamp="::item.updated_on"/> by {{::item.updated_on}}.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Daniel R2
Kilo Sage

@Peter Bodelier this is great, thank you so much, this is working!

You're welcome 🙂


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

 

.