{{ datetime }}

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

Properties

string object_type
Will always be "datetime".
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.rehearsal_start.is_valid %}
	<p>Rehearsal will begin on {{ entity.rehearsal_start | date: "MMMM dd, yyyy 'at' h:m t" }} UTC</p>
{% endif %}

Developer Overview

Liquid Markup