Datetime
SurrealDB datetime values map to Java's java.time.ZonedDateTime. The SDK handles conversion automatically when deserializing query results into Value objects or POJOs.
Value methods
.isDateTime()
Checks if the value is a datetime.
Returns: boolean
.getDateTime()
Returns the datetime as a ZonedDateTime.
Returns: java.time.ZonedDateTime
POJO mapping
When using typed methods, datetime fields in your POJO should be declared as ZonedDateTime.
Example
See Also
Value types — Type mapping overview
Value — The Value class reference
SurrealQL datetimes — Datetime types in SurrealDB