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

Examples

// Which day of the year is 2 July 2014? const result = getDayOfYear(new Date(2014, 6, 2)) //=> 183

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the day of year