Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-beta.2/getDayOfYear/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