Skip to content

Commit

Permalink
Add formatDateYMDWithTime to also display timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
robines committed Nov 16, 2024
1 parent e2a7a1f commit 0c11e67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ export function formatDateYMD(d: Date): string {
return format(d, 'yyyy.LL.dd');
}

export function formatDateYMDWithTime(d: Date): string {
return format(d, 'yyyy.LL.dd HH:mm');
}

/**
* Generic query function for DTOs. Returns elements from array matching query.
* @param query String query to search with
Expand Down

0 comments on commit 0c11e67

Please sign in to comment.