Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/getQuarter/index.ts";

Examples

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

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the quarter