now - Liquid Filter Reference - 0.10.11

Filter Name now
Group Dates
Version 0.10.11

Description

Returns a timestamp for the current date and time for the given timezone

Examples

When a valid timezone is provided, it outputs a timestamp for the current datetime offset for the given timezone:
{{ "Australia/Sydney" | now }}
2021-07-01T09:00:00+10:00
When an invalid timezone is provided, it outputs an error:
{{ "Unknown/Timezone" | now }}
Invalid Timezone: Unknown/Timezone

Back to Filter List

Back to Liquid Reference for 0.10.11

 

 
Back to Documentation