Kaizen
Browse modulesFormsforms/sharedSchemas and constants

Variable: dateFieldValueSchema

const dateFieldValueSchema: ZodUnion<readonly [ZodString, ZodObject<{
  from: ZodString;
  to: ZodNullable<ZodString>;
}, $strip>]>;

Defined in: shared/forms/schemas.ts:60

Persisted value of a date field. Mirrors UDS DatePicker's native per-mode shape: a bare ISO string in single mode, { from, to } in range mode. When "Show time" is on the ISO strings carry a time component (YYYY-MM-DDTHH:mm); otherwise they are date-only (YYYY-MM-DD).