Add journal frontend
This commit is contained in:
7
frontend/src/modules/dateHelpers.ts
Normal file
7
frontend/src/modules/dateHelpers.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export function getServerDateRep(date: Date) : string {
|
||||
return date.toISOString().slice(0,10);
|
||||
}
|
||||
|
||||
export function getClientDateRep(date: Date) : string {
|
||||
return date.toLocaleDateString("de-DE");
|
||||
}
|
||||
Reference in New Issue
Block a user