Hopefully a quick answer for someone, but my google-fu has deserted me.
In vbscript I can use "setlocale" to set the locale a script is running in. I need a javascript version.
So for example, say my user is using a browser with french settings, but I want numbers and dates to be in english and worked with as if they are english. Then in vbscript I could do
setlocale 2057
to set to english locale
and then when I'm finished working with the numbers/ dates I can set back to french
setlocale 1036
Is there a javascript equivalent? How can I accomplish this in javascript?