Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.8/getQuarter/index.js";

Examples

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

Parameters

dirtyDate
  • the given date
dirtyOptions