Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.6.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