You are here

constant DATETIME_DATE_STORAGE_FORMAT in Drupal 8

Defines the format that dates 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::DATE_STORAGE_FORMAT instead.

See also

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

File

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

Code

const DATETIME_DATE_STORAGE_FORMAT = 'Y-m-d';