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

getWeekOfMonth

import { getWeekOfMonth } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Which week of the month is 9 November 2017?
const result = getWeekOfMonth(new Date(2017, 10, 9))
//=> 2
function getWeekOfMonth<DateType extends Date>(date: DateType | number | string, options?: GetWeekOfMonthOptions): number;
§
getWeekOfMonth<DateType extends Date>(date: DateType | number | string, options?: GetWeekOfMonthOptions): number
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The given date
§
options?: GetWeekOfMonthOptions optional
[src]
  • An object with options.

§Return Type

§
number
[src]

The week of month