Date Handling

Aurora has several default filters that you can use to handle dates.

  • long_date - Converts a date to a long format, e.g. "January 01, 2020"
  • date_to_xml_string - Converts a date to an XML string, e.g. "2020-01-01T00:00:00"
  • archive_date - Converts a date to a format suitable for archivess, e.g. "2020/01"
  • month_number_to_written_month - Converts a month number to a written month, e.g. "01" to "January"

These filters can be used like:

{{ date | long_date }}
{{ date | date_to_xml_string }}
{{ date | archive_date }}
{{ date | month_number_to_written_month }}