UNPKG

407 BJavaScriptView Raw
1import { dateLib as defaultDateLib } from "../lib/index.js";
2/**
3 * Format the day date shown in the day cell.
4 *
5 * @defaultValue `d` (e.g. "1")
6 * @group Formatters
7 * @see https://daypicker.dev/docs/translation#custom-formatters
8 */
9export function formatDay(date, options,
10/** @ignore */
11dateLib = defaultDateLib) {
12 return dateLib.format(date, "d", options);
13}
14//# sourceMappingURL=formatDay.js.map
\No newline at end of file