Skip to main content
Module

x/date_fns/index.js>startOfDecade

date-fns Deno package
Go to Latest
function startOfDecade
import { startOfDecade } from "https://deno.land/x/date_fns@v2.15.0/index.js";

Examples

// The start of a decade for 21 October 2015 00:00:00: var result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) //=> Jan 01 2010 00:00:00

Parameters

dirtyDate
  • the original date