Skip to content

getDayStrings Type documentation

(locale: string, weekStart: WeekStart = 'monday', format: ("narrow" | "short" | "long") = 'short') => string[]
Function
Get local specific weekdays as string using DateTimeFormat.
-
Returns array of week days.
Parameters
current local
locale: string
start of the week
weekStart: WeekStart = 'monday'
display format
format: ("narrow" | "short" | "long") = 'short'

Types Documentation

("monday" | "saturday" | "sunday" | undefined)

Except where otherwise noted, content on this site is licensed under MIT License.