Date

The [date.formats] table allows adding custom date formats:

[date.formats]
timestamp = "%s"

You can then reference the custom format using date-formats.timestamp, see the date helper for examples and the list of format specifiers for more information on the formatting options available.

You can overwrite the built-in formats if necessary, for example:

[date.formats]
date-short = "%d/%m/%y"

Back to Settings