Module

std/datetime/mod.ts>weekOfYear

Deno standard library
Go to Latest
function weekOfYear
import { weekOfYear } from "https://dotland.deno.dev/std@0.131.0/datetime/mod.ts";

Get number of the week in the year (ISO-8601)

Parameters

date: Date

Returns

number

Number of the week in year