Skip to main content
Module

x/complaindate/mod.ts>daysInMonth

JavaScript date-time utilities that keep timezones on the surface
Latest
function daysInMonth
import { daysInMonth } from "https://deno.land/x/complaindate@v1.0.1/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