startOfMonth
Return the start of a month for the given date.
// The start of a month for 2 October 2020 09:50:01: const result = startOfMonth(new Date(2020, 10, 2, 09, 50, 1)) //=> Oct 01 2020 00:00:00
the original date
the start of a month
Generated using TypeDoc
startOfMonth
Return the start of a month for the given date.
Return the start of a month for the given date.
// The start of a month for 2 October 2020 09:50:01: const result = startOfMonth(new Date(2020, 10, 2, 09, 50, 1)) //=> Oct 01 2020 00:00:00