Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/complaindate/mod.ts>daysInMonth

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
function daysInMonth
import { daysInMonth } from "https://deno.land/x/complaindate@v0.7.2/mod.ts";

Get the number of days in the month for a given date.

February has 29 days in a leap year, otherwise 28.

Parameters

unnamed 0: { year: number | string; month: number | string; }

Returns

number