'use strict';

var DateLib = require('../classes/DateLib.cjs');

/**
 * Format the day date shown in the day cell.
 *
 * @defaultValue `d` (e.g. "1")
 * @group Formatters
 * @see https://daypicker.dev/docs/translation#custom-formatters
 */
function formatDay(date, options, dateLib) {
    return (dateLib ?? new DateLib.DateLib(options)).format(date, "d");
}

exports.formatDay = formatDay;
//# sourceMappingURL=formatDay.cjs.map
