UNPKG

@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) 594 B
[**@uplink-protocol/form-controller v0.2.1**](../README.md) *** [@uplink-protocol/form-controller](../globals.md) / getFirstDayOfMonth # Function: getFirstDayOfMonth() > **getFirstDayOfMonth**(`year`, `month`): `number` Defined in: [utils/calendar.utils.ts:21](https://github.com/jmkcoder/uplink-protocol-calendar/blob/311e0b81efba7399cf1c367c0a2007aa66f3b830/src/utils/calendar.utils.ts#L21) Get the first day of the month (0 = Sunday, 1 = Monday, etc.) ## Parameters ### year `number` The year ### month `number` The month (0-11) ## Returns `number` The day of the week (0-6)