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

x/date_fns/index.js>getDaysInYear

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

Examples

// How many days are in 2012? var result = getDaysInYear(new Date(2012, 0, 1)) //=> 366

Parameters

dirtyDate
  • the given date