Date Filters

Use date filters to convert, manipulate, and display dates.

add_days: int operand
Return a date object operand days in the future. If operand is negative, return a date that many days in the past.
add_hours: int operand
Return a date object operand hours in the future. If operand is negative, return a date that many hours in the past.
add_minutes: int operand
Return a date object operand minutes in the future. If operand is negative, return a date that many minutes in the past.
add_months: int operand
Return a date object operand months in the future. If operand is negative, return a date that many months in the past.
add_weeks: int operand
Return a date object operand weeks in the future. If operand is negative, return a date that many weeks in the past.
add_years: int operand
Return a date object operand years in the future. If operand is negative, return a date that many years in the past.
date: String format (optional)
Returns the current value as a date. If format is specified, converts the date to a string before returning it using the given format. format must be a valid .NET date format.
midnight
Return the date representing midnight for the current value
time_diff: date other String format (optional)
If format is unspecified, returns a time_diff object describing the difference between the current date and the other date. If format is specified, converts the time difference to a string before returning it using the given format. format must be a valid .NET TimeSpan format.
timezone: bool full = false
Returns the timezone that the date is in. If full is true, returns the full timezone identifier (eg: "Europe/Rome"). If full is false (default) or not specified, returns the abbreviated timezone name (eg: "CET").
to_timezone: String timezone
Converts the current date to the specified timezone (eg: "America/Indianapolis")

Developer Overview

Liquid Markup