@yookue/ts-lang-utils
    Preparing search index...

    Function getStartOfMonth

    • Returns the start month date of the given date

      Parameters

      • Optionaldate: Date

        the date to inspect

      Returns undefined | Date

      the start month date of the given date

      David Hsing

      getStartOfMonth(new Date(2023, 8, 30));    // Date(2023, 8, 1, 0, 0, 0)