Skip to content

DateField

Defined in: core/field/types/Date.ts:6

Date field type

[key: `${string}:${string}`]: any

optional constraints: DateConstraints

Defined in: core/field/types/Base.ts:42

Validation constraints applied to values

BaseField.constraints


optional description: string

Defined in: core/field/types/Base.ts:20

Human-readable description

BaseField.description


optional example: any

Defined in: core/field/types/Base.ts:25

Example value for this field

BaseField.example


optional format: string

Defined in: core/field/types/Date.ts:18

Format of the date

  • default: YYYY-MM-DD
  • any: flexible date parsing (not recommended)
  • Or custom strptime/strftime format string

optional missingValues: (string | { label: string; value: string; })[]

Defined in: core/field/types/Base.ts:37

Values representing missing data for this field Can be a simple array of strings or an array of {value, label} objects where label provides context for why the data is missing

BaseField.missingValues


name: string

Defined in: core/field/types/Base.ts:10

Name of the field matching the column name

BaseField.name


optional rdfType: string

Defined in: core/field/types/Base.ts:30

URI for semantic type (RDF)

BaseField.rdfType


optional title: string

Defined in: core/field/types/Base.ts:15

Human-readable title

BaseField.title


type: "date"

Defined in: core/field/types/Date.ts:10

Field type - discriminator property