Skip to main content
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/lastDayOfMonth/index.ts";

Examples

// The last day of a month for 2 September 2014 11:55:00: var result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) //=> Tue Sep 30 2014 00:00:00

Parameters

dirtyDate: Date | number
  • the original date

Returns

the last day of a month