Future - Date formatting
What we're planning for SA5
Last updated
What we're planning for SA5
Last updated
Currently SA5 supports day.js. It offers a wide range of date formatting capabilities.
The reason this feature requires you to specify a format handler is that it's likely we'll add other handlers in the future such as Luxon, which have different formatting string capabilities.
Moment offers some pretty great features that we may extend into attributes, such as;
Relative time, e.g. time until and time since displays, e.g. "7 days until..." or "Published 23 days ago".
Locale support. We'll wait to see how Webflow's localization features shape up.
Calendar time
Convert site time to the user's local time
https://discourse.webflow.com/t/how-to-display-time-in-visitor-time-zone/123136/27
Offers a different range of formatting strings and options.
https://moment.github.io/luxon/#/install
https://moment.github.io/luxon/#/formatting?id=table-of-tokens