How to use the library MomentJs

In luxon, the toRelative method gives you the kind of notation you are looking for: DateTime | Luxon

In the event you want to pull in, say, Luxon (which does this kind of date comparison and display job well) and you want access in the editor, paste the script tag you can get here: https://cdnjs.com/libraries/luxon into our weweb converter here: https://weweb-embed.statechange.ai/ to generate a custom javascript step you can put into your page load to have access to luxon.

3 Likes