{{ date }}

Field used to store a date. All dates are stored in UTC time.

Properties

string object_type
Will always be "date".
true/false is_valid
True if the value is not empty.
string value
Unformatted date string (in UTC).
string output
The value formatted using the "Short date pattern" (MM/dd/yyyy).
html output_in_list
Same as output.
string field_id
The identifier for this field.
string default_value
The default value for this field if no value is specified.

Examples

{% if entity.date_opened.is_valid %}
	<p><strong>Date Opened</strong>: {{ entity.date_opened | date: "MMMM dd, yyyy" }}</p>
{% endif %}

Developer Overview

Liquid Markup