Use date filters to convert, manipulate, and display dates.
Return a date object operand days in the future. If operand is negative, return a date that many days in the past.
Return a date object operand hours in the future. If operand is negative, return a date that many hours in the past.
Return a date object operand minutes in the future. If operand is negative, return a date that many minutes in the past.
Return a date object operand months in the future. If operand is negative, return a date that many months in the past.
Return a date object operand seconds in the future. If operand is negative, return a date that many seconds in the past.
Return a date object operand weeks in the future. If operand is negative, return a date that many weeks in the past.
Return a date object operand years in the future. If operand is negative, return a date that many years in the past.
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 standard or custom .NET date format. See the format filter below for some format string examples.
Returns the object formatted as a string using the provided format string. For numbers, the behavior is the same as the format_number filter. For time_diffs you must supply a valid standard or custom.NET TimeSpan format. For dates you must supply a valid standard or custom .NET date format.
format: format
Return the date representing midnight for the current value
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 standard or custom.NET TimeSpan format.
time_diff: date other, String format (optional)
Returns the timezone that the date is in. If full is true or if an abbreviated timezone name is not available, returns the full timezone identifier (eg: "Europe/Rome"). If full is false (default) or not specified and an abbreviated timezone name is available returns the abbreviated timezone name (eg: "PST" or "PDT").
timezone: full = false
Converts the current date to the specified timezone.
to_timezone: String timezone