react-day-picker
Version:
Customizable Date Picker for React
13 lines (12 loc) • 457 B
TypeScript
import { type DateLib } from "../classes/DateLib.js";
/**
* Formats the year for the dropdown option label.
*
* @param year The year to format.
* @param dateLib The date library to use for formatting. Defaults to
* `defaultDateLib`.
* @returns The formatted year as a string.
* @group Formatters
* @see https://daypicker.dev/docs/translation#custom-formatters
*/
export declare function formatYearDropdown(year: Date, dateLib?: DateLib): string;