When reading the reference about JavaScript on Date object from Mozilla Developer Network, I get this note:
You shouldn’t use this method in contexts where you rely on a
particular format or locale."Last visit: " + someDate.toLocaleDateString(); // Good example "Last visit was at " + someDate.toLocaleDateString(); // Bad example
Why?
Because in other languages that way of writing the date could not make sense. In spanish, by example, you would say:
So if you just write “Last visit: “, you avoid the locale format of the date.