Skip to main content
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/getDaysInYear/index.ts";

Examples

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

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the number of days in a year