@mindfulness/utils
    Preparing search index...

    Function getYear

    • Parameters

      • date: string | number | Date

        The given date

      • Optionaloptions: GetYearOptions

        An object with options

      Returns number

      The year

      getYear

      Get the year of the given date.

      // Which year is 2 July 2014?
      const result = getYear(new Date(2014, 6, 2))
      //=> 2014