GCBGutenberg
Control Blocks
Buy

Field type

date

Date picker. Author clicks a button to open a calendar popover (or modal in metabox contexts). Stores a date-only ISO string.

Type: date · Stored attribute type: string

Stored value

string — ISO date like "2026-05-28", or empty string when cleared.

Supports

  • Calendar popover with Clear button
  • Works in both sidebar (popover) and metabox (modal) variants

Config options

OptionTypeDefaultDescription
helpTextstringOne-line description shown below the picker.

Gotchas

  • No min/max date config — if you need bounded dates, enforce in your render code or filter saved values server-side.

Example

JSON
{ "id": "ctrl_publish_at",
  "type": "date",
  "label": "Publish date",
  "attributeKey": "publish_at",
  "parentPanelId": "panel" }

Every field also takes the keys common to all fields.

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

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