@mindfulness/utils
    Preparing search index...

    Function getDay

    • Parameters

      • date: string | number | Date

        The given date

      • Optionaloptions: GetDayOptions

        The options

      Returns number

      The day of week, 0 represents Sunday

      getDay

      Get the day of the week of the given date.

      // Which day of the week is 29 February 2012?
      const result = getDay(new Date(2012, 1, 29))
      //=> 3