@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 411 B
TypeScript
import { type DateOptions } from './date.ts';
/**
* Determine the last day of the month containing the input date
* @param input - The date
* @param options - see {@link DateOptions}
* @defaultValue utc false
* @returns Midnight on the last day of the month corresponding to the input date
* @group Time
* @category Month
*/
export declare function endOfMonth(input: Date, { utc }?: DateOptions): Date;