Skip to content

UseLastDayOfMonth

katanakit-js / useLastDayOfMonth

function useLastDayOfMonth(date?): string;

Defined in: core/services/dates.service.ts:743

Returns the last day of the month for a given date.

Parameter Type Description
date? string | PlainDate Base date (defaults to today).

string

The last day of the month as an ISO string.

useLastDayOfMonth("2024-02-10"); // "2024-02-29"