Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/complaindate/utils/startOfYear.ts>startOfYear

JavaScript date-time utilities that keep timezones on the surface
Latest
function startOfYear
import { startOfYear } from "https://deno.land/x/complaindate@v1.0.1/utils/startOfYear.ts";

Jump to January 1 of a plain-date's year.

Parameters

date: T

A plain-date

Returns

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