@technobuddha/library
Version:
A large library of useful functions
15 lines (14 loc) • 474 B
TypeScript
declare type Options = {
/** Use the UTC timezone */
UTC?: boolean;
};
/**
* Determine the start of the month for a dateDetermine the start of the month for a date
*
* @param input The date
* @param __namedParamaters see {@link Options}
* @default UTC false
* @returns The date value for midnight on the first day of the specified month
*/
export declare function getBeginningOfMonth(input: Date, { UTC }?: Options): Date;
export default getBeginningOfMonth;