How to change days ago to actual date in Service Portal

Rajanmehta
Mega Guru

hi all,

Is there a way to change days ago to actual date in service portal?

Please advise.

Thanks,

find_real_file.png

1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

Change


<sn-day-ago date="kb_article.published"/>



to


{{kb_article.published}}


View solution in original post

5 REPLIES 5

Nia McCash
Mega Sage
Mega Sage

Change


<sn-day-ago date="kb_article.published"/>



to


{{kb_article.published}}


Thanks Nia.



It was right on target.



Thanks.


Hello Nia,

Hope you are doing well.  I will appreciate if you can provide your insight on a similar scenario.  I have the same requirement but the line goes like this:

<sn-day-ago date="a.published"/>

I tried the solution you provided but it doesn't take it on mine.

How can I make the change to show only the date?

Will greatly appreciate your response.

No worries Nia.  I managed to get it right.

I did almost the same but just putting it this way {{a.published}} and it worked.