Rocky_Mountain_Vending/.pnpm-store/v10/files/d8/991384229a4719d84b13f1fc36c6f91f141128e2bdf5ca064b74829bd6c66e5f4e8e2611e5a31a683d22dbddd7213edcefaeca974309d1822d36de6ed30d6b
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
674 B
Text

import { defaultDateLib, 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 function formatYearDropdown(
year: Date,
dateLib: DateLib = defaultDateLib
): string {
return dateLib.format(year, "yyyy");
}
/**
* @private
* @deprecated Use `formatYearDropdown` instead.
* @group Formatters
*/
export const formatYearCaption = formatYearDropdown;