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

lastDayOfISOWeekYear

import { lastDayOfISOWeekYear } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// The last day of an ISO week-numbering year for 2 July 2005:
const result = lastDayOfISOWeekYear(new Date(2005, 6, 2))
//=> Sun Jan 01 2006 00:00:00
function lastDayOfISOWeekYear<DateType extends Date>(date: DateType | number | string): DateType;
§
lastDayOfISOWeekYear<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 end of an ISO week-numbering year