Function: useFirstDayOfMonth()
useFirstDayOfMonth(
date?):string
Defined in: src/core/services/dates.service.ts:223
Returns the first day of the month for a given date.
Parameters
date?
string | PlainDate
Base date (defaults to today).
Returns
string
The first day of the month as an ISO string.
Example
useFirstDayOfMonth("2024-06-15"); // "2024-06-01"