@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function startOfMonth

    • Returns a new Date representing the first day of the month at midnight (local time).

      Parameters

      • date: Date

        The input date.

      Returns Date

      startOfMonth(new Date("2024-06-15")) // => 2024-06-01T00:00:00.000