@uplink-protocol/calendar-controller
Version:
Flexible calendar API supporting both calendar and date-picker integrations for any JavaScript framework or library
34 lines (17 loc) • 694 B
Markdown
[**@uplink-protocol/form-controller v0.2.1**](../README.md)
***
[@uplink-protocol/form-controller](../globals.md) / getWeekdayNames
# Function: getWeekdayNames()
> **getWeekdayNames**(`short`, `firstDayOfWeek`): `string`[]
Defined in: [utils/calendar.utils.ts:86](https://github.com/jmkcoder/uplink-protocol-calendar/blob/311e0b81efba7399cf1c367c0a2007aa66f3b830/src/utils/calendar.utils.ts#L86)
Get localized weekday names
## Parameters
### short
`boolean` = `false`
Whether to get short weekday names
### firstDayOfWeek
`number` = `0`
The first day of the week (0 = Sunday, 1 = Monday, etc.)
## Returns
`string`[]
Array of weekday names, starting with the specified first day