GCBGutenberg
Control Blocks
Buy

Field type

datetime

Date + time picker. Like date, but the popover also includes hour/minute selectors. Stores an ISO 8601 timestamp.

Type: datetime · Stored attribute type: string

Stored value

string — ISO 8601 like "2026-05-28T14:30:00", or empty string when cleared.

Supports

  • 12-hour time picker alongside the calendar
  • Clear button to reset to empty

Config options

OptionTypeDefaultDescription
helpTextstringOne-line description shown below the picker.

Gotchas

  • Stored as a local ISO string with no timezone suffix. Treat as the author's local time unless you explicitly convert on the server.

Example

JSON
{ "id": "ctrl_event_at",
  "type": "datetime",
  "label": "Event start",
  "attributeKey": "event_at",
  "parentPanelId": "panel" }

Every field also takes the keys common to all fields.

Built from GCB Lite 0.4.0 (ce232d4). Source: schemas/controls/datetime.md.

Copyright © 2026 Runchain. WordPress is a trademark of the WordPress Foundation.