Datetime Control
Combined date and time picker.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label | string | - | Field label |
control | string | datetime-picker | Control type |
datetimeFormat | string | - | Format (e.g., “DD/MM/YYYY HH:mm”) |
default | string | - | Default datetime |
Example
Section titled “Example”{ "attributes": { "scheduledPublish": { "type": "string", "default": "", "wbs": { "label": "Scheduled Publish", "control": "datetime-picker", "datetimeFormat": "DD/MM/YYYY HH:mm" } } }}Template Usage
Section titled “Template Usage”<time datetime="{{ attributes.scheduledPublish }}"> {{ attributes.scheduledPublish }}</time>Use Case
Section titled “Use Case”Use Datetime for scheduled posts, appointments, events, or any combined date/time selection needs.