stack

Home > @infiniteobjects/core-library-web > Dates > startOfMonth

Dates.startOfMonth() method

Gets the first day of the month for the given date.

Signature:

static startOfMonth(date?: Date): Date;

Parameters

Parameter Type Description
date Date (Optional) Date to get month from

Returns:

Date