Skip to content

Commit

Permalink
feat: add formatGermanTimeHourMinute
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jul 27, 2023
1 parent 6ad809a commit bbce392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ export function parseDotlessDate(value: string): Date | null {
export function formatDotlessDate(date: Date | string | number): string {
return format(date, DOTLESS_DATE_FORMAT, { locale: de });
}

export function formatGermanTimeHourMinute(date: string): string {
return format(date, 'HH:mm');
}

0 comments on commit bbce392

Please sign in to comment.