Bluewaterblog/blog/src/lib/formatDate.ts
ebby 4ded1c127d
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 49s
date changed to german
2026-08-21 14:04:52 +02:00

3 lines
No EOL
121 B
TypeScript

export function formatLocalizedDateString(date: string): string {
return new Date(date).toLocaleDateString('de-DE')
}