Package: effect
Module: SchemaTransformation
Decodes a date-time string into a DateTime.Utc and encodes it back to an ISO
string.
When to use
Use when you need a schema transformation to decode date-time strings to a
normalized DateTime.Utc and encode back as a UTC ISO string.
Details
Decode accepts strings supported by DateTime.make, converts the result to
UTC, and fails with InvalidValue when parsing fails. Encode uses
DateTime.formatIso.
See
dateFromString for decoding into JavaScript DatedateTimeZonedFromString for ISO strings that should preserve zoned date-time informationSignature
declare const dateTimeUtcFromString: Transformation<DateTime.Utc, string, never, never>
Since v4.0.0