Rocky_Mountain_Vending/.pnpm-store/v10/files/ae/98e955a4805770a9c45fd94bfd82b04d793cd5c61466abf89e96d5485ab81c20c75a2458081f8126ce8c203c909dbc576a5c88c8133d38abaebdffbc32036f
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

30 lines
627 B
Text

import { toDate } from "./toDate.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 toDate(date, options?.in).getMonth();
}
// Fallback for modularized imports:
export default getMonth;