Your IP : 216.73.217.95


Current Path : /var/www/surf/TYPO3/vendor/mask/mask/Documentation/Fieldtypes/Type/
Upload File :
Current File : /var/www/surf/TYPO3/vendor/mask/mask/Documentation/Fieldtypes/Type/Datetime.rst

.. 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 <t3tca:tca_property_default>`
*  :ref:`config.placeholder <t3tca:tca_property_placeholder>`
*  :ref:`config.range.lower <t3tca:columns-input-datetime-properties-range>`
*  :ref:`config.range.upper <t3tca:columns-input-datetime-properties-range>`
*  :ref:`config.eval.required <t3tca:columns-input-properties-eval>`
*  :ref:`l10n_mode <t3tca:columns-properties-l10n-mode>`
*  :ref:`config.behaviour.allowLanguageSynchronization <t3tca:tca_property_behaviour_allowLanguageSynchronization>`
*  :ref:`config.eval.null <t3tca:columns-input-properties-eval>`
*  :ref:`config.mode <t3tca:tca_property_mode>`

See a complete overview of Datetime TCA options in the :ref:`official documentation <t3tca:columns-input-properties-dbtype>`.