Rocky_Mountain_Vending/.pnpm-store/v10/files/e7/ee1513b7b0fd307763ad5376b3b5c477018ec299f132222ce8b8ec3a02b1cbe65d6c4f367bbcd764ebf2cd3a6ce6d8d554ae87f222ce3dc08c333a309e3fa2
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

13 lines
295 B
Text

import { toJalali } from "../_lib/jalali.js";
/**
*
* @param cleanDate {Date}
* @returns {number}
*/
export function getMonth(cleanDate) {
const gd = cleanDate.getDate();
const gm = cleanDate.getMonth() + 1;
const gy = cleanDate.getFullYear();
return toJalali(gy, gm, gd).jm - 1;
}