fix(FE) : card list antrean

This commit is contained in:
Yusron alamsyah
2026-03-05 10:34:59 +07:00
parent 8d9c2585e4
commit 2d901f1fe3
20 changed files with 3842 additions and 1093 deletions
+9
View File
@@ -253,3 +253,12 @@ export function truncate(
return value.substring(0, length) + suffix;
}
export function formatDate(date: string | Date | null | undefined, options?: Intl.DateTimeFormatOptions): string {
if (!date) return '-';
return new Date(date).toLocaleDateString('id-ID', {
year: 'numeric',
month: 'short',
day: 'numeric'
});
};