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

x/complaindate/utils/startOfMonth.ts>startOfMonth

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

Jump to the first day of a plain-date's month.

Parameters

date: T

A plain-date

Returns

A new plain-date that is the 1st day of the given plain-date's month