CMS "Published On" Date but display how many days ago instead

I am successfully pulling the “Published On” date from my CMS collection but I would prefer for it to display how many days ago it was instead of the date. I don’t see this in the formatting options. Is this something I would have to introduce custom code to do?


Here is my public share link: LINK
(how to access public share link)

Hey Ben,

Custom script is one approach. If you want you can use an “attributes” based library to do this as well. This one is new but Manuel has done a nice job;

Also you probably do not want to use the built-in Published On field, in case that’s what you were thinking of using.

1 Like