codetrix - v1.5.0
    Preparing search index...

    Function getMonth

    • Returns the month number from a given date.

      Parameters

      • date: Date

        The date object to extract the month from.

      Returns number

      Month number (1-12).

      getMonth(new Date(2025, 6, 23)); // 7 (July)