Skip to main content
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/setISOWeek/index.ts";

Examples

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

Parameters

dirtyDate: Date | number
  • the date to be changed
dirtyISOWeek: number
  • the ISO week of the new date

Returns

the new date with the ISO week set