Skip to content

Date and time types

isoDate

A date on a calendar in ISO 8601 format YYYY-MM-DD.

$schema: https://json-schema.org/draft/2020-12/schema
$id: isoDate.yaml
type: string
format: date
description: A date on a calendar in ISO 8601 format YYYY-MM-DD

isoTime

A time on a clock, without a timezone, in ISO 8601 format HH:mm:ss.

$schema: https://json-schema.org/draft/2020-12/schema
$id: isoTime.yaml
type: string
format: time
description: A time on a clock, without a timezone, in ISO 8601 format HH:mm:ss

utcDateTime

A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ssZ.

$schema: https://json-schema.org/draft/2020-12/schema
$id: isoDateTime.yaml
type: string
format: date-time
description: A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ssZ

offsetDateTime

A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ss±hh:mm.

$schema: https://json-schema.org/draft/2020-12/schema
$id: offsetDateTime.yaml
type: string
format: date-time
description: A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ss±hh:mm