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-alpha.3/startOfISOYear/index.js";

Examples

// The start of an ISO week-numbering year for 2 July 2005: var result = startOfISOYear(new Date(2005, 6, 2)) //=> Mon Jan 03 2005 00:00:00

Parameters

dirtyDate
  • the original date
dirtyOptions