Future - Date formatting

What we're planning for SA5

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.

Date Features

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

Luxon

Offers a different range of formatting strings and options.

Moment

https://moment.github.io/luxon/#/install

https://moment.github.io/luxon/#/formatting?id=table-of-tokens

Last updated