Skip to main content
Module

x/complaindate/mod.ts>startOfMonth

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