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>
13 lines
294 B
Text
13 lines
294 B
Text
import { toJalali } from "../_lib/jalali.js";
|
|
|
|
/**
|
|
*
|
|
* @param cleanDate {Date}
|
|
* @returns {number}
|
|
*/
|
|
export function getFullYear(cleanDate) {
|
|
const gd = cleanDate.getDate();
|
|
const gm = cleanDate.getMonth() + 1;
|
|
const gy = cleanDate.getFullYear();
|
|
return toJalali(gy, gm, gd).jy;
|
|
}
|