@mindfulness/utils
    Preparing search index...

    Function getDayOfYear

    • Parameters

      • date: string | number | Date

        The given date

      • Optionaloptions: GetDayOfYearOptions

        The options

      Returns number

      The day of year

      getDayOfYear

      Get the day of the year of the given date.

      // Which day of the year is 2 July 2014?
      const result = getDayOfYear(new Date(2014, 6, 2))
      //=> 183