Module

x/light_date/locale.ts>default

⏰ Blazing fast & lightweight (157 bytes) date formatting for Node.js and the browser.
Latest
variable default
import { default } from "https://dotland.deno.dev/x/light_date@1.2.0/locale.ts";

Use this API for locale-based formatting.

Examples

localeFormat(new Date(2014, 1, 11), '{MMM}') //=> 'Jan'

type

(
date: Date,
exp: string,
locale?: string | string[],
) => string