constant DATETIME_DATETIME_STORAGE_FORMAT

Defines the format that date and time should be stored in.

6 uses of DATETIME_DATETIME_STORAGE_FORMAT
DateTimeDatelistWidget::formElement in drupal/core/modules/datetime/lib/Drupal/datetime/Plugin/field/widget/DatetimeDatelistWidget.php
Implements \Drupal\field\Plugin\Type\Widget\WidgetInterface::formElement().
DateTimeDefaultWidget::formElement in drupal/core/modules/datetime/lib/Drupal/datetime/Plugin/field/widget/DatetimeDefaultWidget.php
Implements \Drupal\field\Plugin\Type\Widget\WidgetInterface::formElement().
DatetimeFieldTest::testDatetimeField in drupal/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php
Tests date and time field.
DateTimePlainFormatter::viewElements in drupal/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimePlainFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::viewElements().
datetime_default_value in drupal/core/modules/datetime/datetime.module
Sets a default value for an empty date field.

... See full list

File

drupal/core/modules/datetime/datetime.module, line 22
Field hooks to implement a simple datetime field.

Code

const DATETIME_DATETIME_STORAGE_FORMAT = 'Y-m-d\\TH:i:s';