This action already exists natively on the Outsystems platform, but it is a server action and has limitations to use in a reactive application, for example, I converted it into a client action, and it can be used inside a list or table records for example, something that was not possible to use with the native function!
Formats a date and time relative to the current moment.
<= 1 min
16:08 (just now)
< 24 hours
16:07 (1 minute ago), 22:09 (in 6 hours)
>=24 hours and <= 1 day
yesterday, today, tomorrow
<= 30 days
30 Jul (3 weeks ago), 8 Aug (9 days ago), 27 Aug (in 10 days), 16 Sep (in 4 weeks)
> 30 days
30 Apr, 20 Oct