From 171a7d08b73a41e7e8381c611704e7cbf0ee57f4 Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 23 Jun 2026 00:10:48 +0200 Subject: [PATCH] added external date -> german date formatter --- webapp/src/app/shared/utils/formatters.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webapp/src/app/shared/utils/formatters.ts diff --git a/webapp/src/app/shared/utils/formatters.ts b/webapp/src/app/shared/utils/formatters.ts new file mode 100644 index 00000000..58cc03bc --- /dev/null +++ b/webapp/src/app/shared/utils/formatters.ts @@ -0,0 +1,9 @@ +export function formatGermanDate(dateString: string): string { + if (!dateString) return ''; + + return new Intl.DateTimeFormat('de-DE', { + day: 'numeric', + month: 'long', + year: 'numeric', + }).format(new Date(dateString)); +}