Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>getDecade

date-fns Deno package
Very Popular
Go to Latest
function getDecade
import { getDecade } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/index.js";

Examples

// Which decade belongs 27 November 1942? var result = getDecade(new Date(1942, 10, 27)) //=> 1940

Parameters

dirtyDate
  • the given date