Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>getQuarter

date-fns Deno package
Very Popular
Go to Latest
function getQuarter
import { getQuarter } from "https://deno.land/x/date_fns@v2.5.1/index.js";

Examples

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

Parameters

dirtyDate
  • the given date