Spaces:
Running
Running
File size: 377 Bytes
e01e648 |
1 2 3 4 5 6 7 8 9 10 11 12 |
// Shared utility functions can go here
export const formatCurrency = (value) => {
return new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD'
}).format(value);
};
export const formatDate = (dateString) => {
const options = { year: 'numeric', month: 'short', day: 'numeric' };
return new Date(dateString).toLocaleDateString('en-US', options);
}; |