A lexicon-driven AppView for ATProto.
Something went wrong. Try again.
123456789101112131415161718export function formatDate( date: Date | string | number | undefined, opts: Intl.DateTimeFormatOptions = {},) { if (!date) return "";
try { return new Intl.DateTimeFormat("en-US", { month: opts.month ?? "long", day: opts.day ?? "numeric", year: opts.year ?? "numeric", ...opts, }).format(new Date(date)); } catch (_err) { return ""; }}