Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function lastDayOfDecade
import { lastDayOfDecade } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/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