I'm writing a small JavaScript function to generate a date selector for use in various languages. I want to test the JavaScript date functions toUTCString
, toLocaleString
, toLocaleDateString
in english, french, german, italian and spanish.
How do I affect the locale settings that are used by the date object. I've tried changing my windows language settings and also my web browsers. There must be a way to do this so I don't have to find a guy with a computer in each country just to test the script?