added external date -> german date formatter
This commit is contained in:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user