Hello,
I have this function :
let formatDate = (dt) => {
let date = new Date(dt).toLocaleDateString().replaceAll("/", ".")
return date + "."
}
The problem I have is that when I use it in Code Pen and on another computer it works just fine but when I use it on this PC, I get this error message:
TypeError: (intermediate value).toLocaleDateString(...).replaceAll is not a function
.