// this for formatting the price in the product overview page for your country currency export const formatPrice = (price: number) => { const formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "EGP", useGrouping: false, }) return formatter.format(price) } export const formatDate = (dateString: string): string => { if (!dateString) return 'N/A'; try { return new Date(dateString).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' }); } catch (e) { return 'Invalid Date'; } };