date + fix sort

This commit is contained in:
2024-05-21 17:00:56 +02:00
parent 540d4814d9
commit 8bcbf3bd1d
5 changed files with 16 additions and 7 deletions

View File

@@ -10,3 +10,5 @@ export const percentFormater = new Intl.NumberFormat("en-US", {
minimumFractionDigits: 0,
maximumFractionDigits: 0
});
export const formatEveDate = (date: Date) => `${date.getUTCFullYear()}.${date.getUTCMonth() + 1}.${date.getUTCDate()} ${date.getUTCHours()}:${date.getUTCMinutes()}`;