.. include:: ../../Includes.txt .. _fields-datetime: Datetime ======== .. figure:: ../../Images/FieldTypes/Datetime.svg :alt: Datetime :class: float-left :width: 64px An input field for date and time (stored as MySQL DATETIME type). .. rst-class:: clear-both .. code-block:: php 'type' => 'input', 'dbType' => 'datetime' .. figure:: ../../Images/FieldTypes/DatetimePreview.png :alt: Datetime field :class: with-border Datetime field Available TCA options --------------------- * :ref:`config.default ` * :ref:`config.placeholder ` * :ref:`config.range.lower ` * :ref:`config.range.upper ` * :ref:`config.eval.required ` * :ref:`l10n_mode ` * :ref:`config.behaviour.allowLanguageSynchronization ` * :ref:`config.eval.null ` * :ref:`config.mode ` See a complete overview of Datetime TCA options in the :ref:`official documentation `.