Datetime field

The date and time of the event

The datetime field stores a Datetime string, collected from an <input type="datetime-local" /> form field.

Usage example

datetime: fields.datetime({ 
  label: 'Event date and time',
  description: 'The date and time of the event'
})

Type signature

Find the latest version of this field's type signature at: https://docsmill.dev/npm/@keystatic/core@latest#/.fields.datetime