UNPKG

react-day-picker

Version:

Customizable Date Picker for React

18 lines 541 B
import { DateLib } from "../classes/DateLib.js"; /** * Format the caption of the month. * * @defaultValue `LLLL y` (e.g. "November 2022") * @group Formatters * @see https://daypicker.dev/docs/translation#custom-formatters */ export function formatCaption(month, options, dateLib) { return (dateLib ?? new DateLib(options)).format(month, "LLLL y"); } /** * @private * @deprecated Use {@link formatCaption} instead. * @group Formatters */ export const formatMonthCaption = formatCaption; //# sourceMappingURL=formatCaption.js.map