3 namespace Drupal\datetime\Plugin\Field\FieldType;
6 * Interface definition for Datetime items.
8 interface DateTimeItemInterface {
11 * Defines the timezone that dates should be stored in.
13 const STORAGE_TIMEZONE = 'UTC';
16 * Defines the format that date and time should be stored in.
18 const DATETIME_STORAGE_FORMAT = 'Y-m-d\TH:i:s';
21 * Defines the format that dates should be stored in.
23 const DATE_STORAGE_FORMAT = 'Y-m-d';