Added new formatter

This commit is contained in:
2024-10-18 11:25:05 +02:00
parent ce0b3ecd22
commit 57b3710c41
4 changed files with 18 additions and 8 deletions

View File

@@ -1,3 +1,12 @@
const numberFormatter = new Intl.NumberFormat("en-US")
export { numberFormatter }
const dateTimeFormatter = new Intl.DateTimeFormat("hr-HR", {
year: "numeric",
month: "numeric",
day: "numeric",
hour: "numeric",
minute: "numeric",
second: "numeric"
})
export { dateTimeFormatter, numberFormatter }