UNPKG

@progress/kendo-date-math

Version:

Kendo UI typescript package exporting functions for Date manipulations

14 lines (13 loc) 375 B
/** * A function that returns a `Date` object of the first month in a year. * * @param date - The start date value. * @returns - The first month in a year. * * @example * ```ts-no-run * firstMonthOfYear(new Date(2017, 11, 1)); // 2017-1-1 * firstMonthOfYear(new Date(2017, 0, 1)); // 2017-1-1 * ``` */ export declare const firstMonthOfYear: (value: Date) => Date;