DatetimeField

Subclass of UnitField and returns a DatetimeAnnotation response.

{
  "type": "datetime",
  "field_id": "release_date",
  "title": "Date of Product Release",
  "description": "Leave empty if not applicable.",
  "include": ["year", "month", "day"],
  "defaults": {
    "year": 2021,
    "month": 4,
    "day": 13
  }
}

Parameter

Type

Default

Description

include*

array

An array of DatetimeSpec elements. Must contain at least one element.

defaults

DatetimeAnnotation

{}

Default value for the return value.

Definition: DatetimeSpec

An enum that consists of year, month, day, hour, and minute.

Definition: DatetimeAnnotation

An interface that contains optional number fields including year, month, day, hour, and minute.