This commit is contained in:
2026-06-11 17:37:32 -05:00
parent 9985534597
commit 6ce395ecc8
3 changed files with 11 additions and 12 deletions

View File

@@ -3,11 +3,10 @@
*/
function formatDate(date) {
const d = new Date(date);
const month = String(d.getMonth() + 1).padStart(2, '0');
const day = String(d.getDate()).padStart(2, '0');
const year = d.getFullYear();
return `${month}/${day}/${year}`;
if (!date) return '—';
const parts = String(date).split('T')[0].split('-');
if (parts.length !== 3) return String(date);
return `${parts[1]}/${parts[2]}/${parts[0]}`;
}
function formatMoney(val) {