Datetime
datetime holds a point in time as an RFC string, i.e. a date and a time with a time zone offset.
| Value | Example |
|---|---|
| RFC 3339 date time | "2026-01-31T12:00:00+00:00", "2026-01-31T12:00:00Z" |
Settings
This type has no settings of its own, it supports the settings of every .
Storage
| Database | Stored as | Notes |
|---|---|---|
| Neo4j | native STRING (RFC 3339) | (default) |
| MongoDB | string | with "storage": "document" or the placement scalar moved to MongoDB |
| Elasticsearch | date | search copy, see below |
The search is written unless the property or the type sets "search": false. Where a property is stored is explained in .
Indices
exact, see . Nested properties can be indexed as well, see nested .
Limits
The value has to contain a date, a time and a time zone, which is a numeric offset with a colon (+01:00) or Z for UTC, e.g. 2026-01-31T12:00:00+00:00 or 2026-01-31T12:00:00Z. Fractions of seconds, offsets without a colon, impossible dates and dates without a time are rejected, use string for them. The same format applies to values of this type inside of object properties, additionalProperties and list items; they are stored as the strings which the request contained.
Example
Schema:
{ "type": "datetime", "index": "exact"}Input and output:
{ "data": { "value": "2026-01-31T12:00:00+00:00" }}