Gets the start of a month for the given date.
// The start of a month for 9 December 2021 09:50:01: const result = endOfMonth(new Date(2021, 12, 9, 09, 50, 1)) //=> Oct 31 2021 00:00:00
the original date
the start of a month
Generated using TypeDoc
Gets the start of a month for the given date.
// The start of a month for 9 December 2021 09:50:01: const result = endOfMonth(new Date(2021, 12, 9, 09, 50, 1)) //=> Oct 31 2021 00:00:00