@mindfulness/utils
    Preparing search index...

    Function getMonth

    • Parameters

      • date: string | number | Date

        The given date

      • Optionaloptions: GetMonthOptions

        An object with options

      Returns number

      The month index (0-11)

      getMonth

      Get the month of the given date.

      // Which month is 29 February 2012?
      const result = getMonth(new Date(2012, 1, 29))
      //=> 1