Very Popular
Latest
function default
import { default } from "https://dotland.deno.dev/x/date_fns@v2.22.1/endOfYear/index.ts";

Examples

// The end of a year for 2 September 2014 11:55:00: var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) //=> Wed Dec 31 2014 23:59:59.999

Parameters

dirtyDate: Date | number
  • the original date

Returns

the end of a year