Rocky_Mountain_Vending/.pnpm-store/v10/files/be/dc5bc28a8d06df20646cae8ed1c81c599074cd0685e0985848c02983b9f8de59820ee21e6924773f410b7078ad262377566ab692baa4862d8eceb2d21ed51c
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
290 B
Text

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