Skip to main content
Module

x/date_only/mod.ts>DateOnly.fromStringOrUndefined

A micro library for actual "dates", not "date times"
Latest
method DateOnly.fromStringOrUndefined
import { DateOnly } from "https://deno.land/x/date_only@0.1.0/mod.ts";

Same as .fromString, but returns undefined on failure instead of throwing DateOnlyError

Parameters

s: string
optional
tz: DateOnlyTimezone = [UNSUPPORTED]

Returns

DateOnly | undefined