Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.3.0/setISOWeek/index.js";

Examples

// Set the 53rd ISO week to 7 August 2004: var result = setISOWeek(new Date(2004, 7, 7), 53) //=> Sat Jan 01 2005 00:00:00

Parameters

dirtyDate
  • the date to be changed
dirtyISOWeek
  • the ISO week of the new date