today - Liquid Filter Reference - 0.11.4
Filter Name | today |
Group | Dates |
Version | 0.11.4 |
Description
Returns a datestamp for the current date for the given timezone
Examples
When a valid timezone is provided, it outputs a timestamp for the current date:
{{ "Australia/Sydney" | today }}
2021-07-01
When an invalid timezone is provided, it outputs an error:
{{ "Unknown/Timezone" | today }}
Invalid Timezone: Unknown/Timezone
Back to Liquid Reference for 0.11.4
Back to Documentation