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

nextMonday

import { nextMonday } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// When is the next Monday after Mar, 22, 2020?
const result = nextMonday(new Date(2020, 2, 22))
//=> Mon Mar 23 2020 00:00:00
function nextMonday<DateType extends Date>(date: DateType | number | string): DateType;
§
nextMonday<DateType extends Date>(date: DateType | number | string): DateType
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The date to start counting from

§Return Type

§
DateType
[src]

The next Monday