@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) • 604 B
Markdown
[**@uplink-protocol/form-controller v0.3.1**](../README.md)
***
[@uplink-protocol/form-controller](../globals.md) / getFirstDayOfMonth
# Function: getFirstDayOfMonth()
> **getFirstDayOfMonth**(`year`, `month`): `number`
Defined in: [Date/utils/calendar.utils.ts:21](https://github.com/jmkcoder/uplink-protocol-calendar/blob/4cde26f472352440ee258db7670fce2e95651862/src/Date/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)