You are here

constant DATETIME_DATETIME_STORAGE_FORMAT in Drupal 8

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

Deprecated

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATETIME_STORAGE_FORMAT instead.

See also

https://www.drupal.org/node/2912980

File

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

Code

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