Date Functions¶
:date(format)
¶
Returns the date formatted according to the specified format.
Special Formats¶
today
: Current date indd/mm/yyyy
formatnow
: Current date and time indd/mm/yyyy HH:MM
formatyesterday
: Yesterday’s date indd/mm/yyyy
formattomorrow
: Tomorrow’s date indd/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.