Rocky_Mountain_Vending/.pnpm-store/v10/files/64/8df56bd5bfb6c8ed8b479df7157346f4ff8b761c6154f039937d808aa8dd47eabc714ca26d8b9e2bf82ed95899d1a01eb860b0daada10a2325ee7237a99bfe
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

32 lines
695 B
Text

import { toDate } from "./toDate.js";
import { getMonth as coreGetMonth } from "./_core/getMonth.js";
/**
* The {@link getMonth} function options.
*/
/**
* @name getMonth
* @category Month Helpers
* @summary Get the month of the given date.
*
* @description
* Get the month of the given date.
*
* @param date - The given date
* @param options - An object with options
*
* @returns The month index (0-11)
*
* @example
* // Which month is 29 February 2012?
* const result = getMonth(new Date(2012, 1, 29))
* //=> 1
*/
export function getMonth(date, options) {
return coreGetMonth(toDate(date, options?.in));
}
// Fallback for modularized imports:
export default getMonth;