Skip to content

Date Functions

:date(format)

Returns the date formatted according to the specified format.

Special Formats

  • today: Current date in dd/mm/yyyy format
  • now: Current date and time in dd/mm/yyyy HH:MM format
  • yesterday: Yesterday’s date in dd/mm/yyyy format
  • tomorrow: Tomorrow’s date in dd/mm/yyyy format

Examples

:date(today)    # Result: "20/04/2025"
:date(now)      # Result: "20/04/2025 14:30"

Custom Formatting

Supports standard date formatting strings:

:date(%Y-%m-%d)        # Result: "2025-04-20"
:date(%d/%m/%Y %H:%M)  # Result: "20/04/2025 14:30"
:date(%A, %d de %B)    # Result: "Sunday, 20 de April"

Time Zone

By default, uses the "America/Sao_Paulo" time zone.