const LOCALE = 'de-DE'

export function formatDate(value: string | Date): string {
  return new Date(value).toLocaleDateString(LOCALE)
}

export function formatDateTime(value: string | Date): string {
  return new Date(value).toLocaleString(LOCALE, { dateStyle: 'short', timeStyle: 'short' })
}
