Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.1.0/lastDayOfDecade/index.js";

Examples

// The last day of a decade for 21 December 2012 21:12:00: var result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) //=> Wed Dec 31 2019 00:00:00

Parameters

dirtyDate
  • the original date