Switched to formatnumber func
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
const numberFormatter = new Intl.NumberFormat(undefined, {
|
||||
const numberFormatter = new Intl.NumberFormat("en-GB", {
|
||||
maximumFractionDigits: 2,
|
||||
minimumFractionDigits: 0
|
||||
})
|
||||
|
||||
const dateFormatter = new Intl.DateTimeFormat(undefined, {
|
||||
const dateFormatter = new Intl.DateTimeFormat("en-GB", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
hour12: false
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user