Temporal Utils by Ian Macalinao
    Preparing search index...
    • Parameters

      • date: PlainDate | PlainYearMonth | PlainDateTime | ZonedDateTime

        The given date

      Returns 1 | 2 | 3 | 4

      The quarter

      getQuarter

      Get the year quarter of the given date.

      // Which quarter is 2 July 2014?
      const result = getQuarter(new Date(2014, 6, 2));
      //=> 3