Home

Date

This is an implementation of schema.org Date.

In Stencila Schema it is represented as a node so dates can be carried through document, metadata, and execution workflows with explicit typing instead of plain strings alone. This enables validation, serialization, and rich rendering while remaining interoperable with schema.org-derived models.

See also related temporal types such as DateTime, Time, and Timestamp.

Analogues

The following external types, elements, or nodes are similar to a Date:

  • schema.org Date

  • JATS <date>: Close JATS analogue for structured date values in document metadata.

Properties

The Date type has these properties:

NameDescriptionTypeInherited from
valueThe date as an ISO 8601 string.String-
idThe identifier for this item.StringEntity

Related

The Date type is related to these types:

Bindings

The Date type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the Date type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
valueMin+Generate a fixed date string.String::from("2022-02-22")
Low+Generate a random date string.Regex [0-9]{4}-[01][0-9]-[0-3][1-9]
High+Generate a random string of up to 10 alphanumeric characters & hyphens.Regex [a-zA-Z0-9\-]{1,10}
MaxGenerate an arbitrary string.String::arbitrary()

This documentation was generated from Date.yaml by docs_types.rs.

© 2026 Stencila