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

x/date_fns/index.js>getDayOfYear

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

Examples

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

Parameters

dirtyDate
  • the given date