import { z } from 'zod';

/**
 * A Zod schema that coerces input to a Date object.
 * This is used to parse and validate incoming date values.
 */
export const DateSchema = z.coerce.date();

/**
 * Type representing a date value inferred from DateSchema.
 */
export type DateValue = z.infer<typeof DateSchema>;
