This Field Type represents a full date including time information.
|Name||Internal name||Expected input type|
This Field Type makes possible to store and retrieve a full date including time information.
PHP API Field Type
If input value is of type
integer, it will be passed directly to the PHP's built-in
\DateTime class constructor, therefore the same input format expectations apply.
It is also possible to directly pass an instance of
The Value class of this field type contains the following properties:
|The date and time value as an instance of |
The constructor for this value object will initialize a new Value object with the value provided. It accepts an instance of PHP's built-in
String representation of the date value will generate the date string in the format "D Y-d-m H:i:s" as accepted by PHP's built-in
Wed 2013-22-05 12:19:18
Hash value of this Field Type is an array with two keys:
|Time information as a timestamp.|
Time information as a string in RFC 850 date format.
As input, this will have higher precedence over the
This Field Type does not perform any special validation of the input value.
The field definition of this Field Type can be configured with several options:
|Used to control displaying of seconds in the output.|
One of the
See below for more details.
This setting complements
In that case the default input value when using administration interface will be adjusted by the given
defaultType default value options are available as constants in the
|Default value will be empty.|
|Default value will use current date.|
|Default value will use current date, adjusted by the interval defined in |
The template called by the ez_render_field() Twig function while rendering a Date field has access to the following parameters:
|Internal parameter set by the system based on current request locale or if not set calculated based on the language of the field.|