Skip to content

getFirstDayInMonth Type documentation

TypeScript declaration

import { getFirstDayInMonth } from '@siemens/element-ng/datepicker';

Gets the first day in the specified month. Expects the month as a value between 1 and 12. The year is required to handle leap years.

Returns: The first day of the month as a Date.

getFirstDayInMonth(year: number, month: number): Date

Gets the first day in the specified month. Expects the month as a value between 1 and 12. The year is required to handle leap years.

Returns: The first day of the month as a Date.

Parameters


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