UNPKG

@uplink-protocol/calendar-controller

Version:

Flexible calendar and time picker API supporting both calendar, date-picker, and time-picker integrations for any JavaScript framework or library

34 lines (17 loc) 704 B
[**@uplink-protocol/form-controller v0.3.1**](../README.md) *** [@uplink-protocol/form-controller](../globals.md) / getWeekdayNames # Function: getWeekdayNames() > **getWeekdayNames**(`short`, `firstDayOfWeek`): `string`[] Defined in: [Date/utils/calendar.utils.ts:86](https://github.com/jmkcoder/uplink-protocol-calendar/blob/4cde26f472352440ee258db7670fce2e95651862/src/Date/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