Skip to content

notionDateStringSchema

const notionDateStringSchema: ZodUnion<readonly [ZodISODateTime, ZodISODate]>

Defined in: src/schemas/shared.schema.ts:16

Notion date string schema. Accepts a date (“2023-02-23”), a UTC date-time (“2023-02-23T00:00:00.000Z”), and a date-time with a UTC offset or no zone (“2021-10-15T12:00:00.000-04:00”, “2021-10-15T12:00:00.000”).