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

isLastDayOfMonth

import { isLastDayOfMonth } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Is 28 February 2014 the last day of a month?
const result = isLastDayOfMonth(new Date(2014, 1, 28))
//=> true
function isLastDayOfMonth<DateType extends Date>(date: DateType | number | string): boolean;
§
isLastDayOfMonth<DateType extends Date>(date: DateType | number | string): boolean
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

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

§Return Type

§
boolean
[src]

The date is the last day of a month