relativetimeformat
Format "5 days ago" localized relative date strings in a few lines with native JavaScript
The native Intl.RelativeTimeFormat API can generate nicely formatted relative date/time strings without any external dependencies.






