You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: The datetime field stores a Datetime string.
---
{% field-demo field="datetime" /%}
The `datetime` field stores an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatted datetime string in UTC time (i.e. YYYY-MM-DDTHH:MM:SS.000Z), collected from an `<input type="datetime-local" />` form field.
{% aside icon="☝️" %}
Datetimes are stored in UTC time, but displayed/edited in the user's local timezone.
{% /aside %}
## Usage example
```typescript
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](https://docsmill.dev/npm/@keystatic/core@latest#/.fields.datetime)