Go to Latest
class DateTimeFormatter
import { DateTimeFormatter } from "https://dotland.deno.dev/std@0.131.0/datetime/formatter.ts";

Constructors

new
DateTimeFormatter(formatString: string, rules?: Rule[])

Methods

format(date: Date, options?: Options): string
parse(string: string): Date
parseToParts(string: string): DateTimeFormatPart[]
partsToDate(parts: DateTimeFormatPart[]): Date
sortDateTimeFormatPart(parts: DateTimeFormatPart[]): DateTimeFormatPart[]

sort & filter dateTimeFormatPart