Skip to main content

Datetime

datetime holds a point in time as an RFC 3339 string, i.e. a date and a time with a time zone offset.

ValueExample
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 property.

Storage

DatabaseStored asNotes
Neo4jnative STRING (RFC 3339)(default)
MongoDBstringwith "storage": "document" or the placement role scalar moved to MongoDB
Elasticsearchdatesearch copy, see below

The search copy is written unless the property or the type sets "search": false. Where a property is stored is explained in placement.

Indices

exact, see indices. Nested properties can be indexed as well, see nested properties.

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"
}
}