UNPKG

react-day-picker

Version:

Customizable Date Picker for React

17 lines 505 B
import { defaultDateLib } from "../classes/DateLib.js"; /** * Format the years for the dropdown option label. * * @group Formatters * @see https://daypicker.dev/docs/translation#custom-formatters */ export function formatYearDropdown(year, dateLib = defaultDateLib) { return dateLib.format(year, "yyyy"); } /** * @private * @deprecated Use `formatYearDropdown` instead. * @group Formatters */ export const formatYearCaption = formatYearDropdown; //# sourceMappingURL=formatYearDropdown.js.map