effect-io-ai

Package: effect
Module: Schema

Schema.Date

This schema converts a string into a Date object using the new Date constructor. It ensures that only valid date strings are accepted, rejecting any strings that would result in an invalid date, such as new Date("Invalid Date").

Signature

declare const Date: typeof Date$

Source

Since v3.10.0