Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

startOfISOWeekYear

import { startOfISOWeekYear } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// The start of an ISO week-numbering year for 2 July 2005:
const result = startOfISOWeekYear(new Date(2005, 6, 2))
//=> Mon Jan 03 2005 00:00:00
function startOfISOWeekYear<DateType extends Date>(date: DateType | number | string): DateType;
§
startOfISOWeekYear<DateType extends Date>(date: DateType | number | string): DateType
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The original date

§Return Type

§
DateType
[src]

The start of an ISO week-numbering year