User-760709272 posted
string[] lang = Request.UserLanguages;
string locale = string.Empty;
if (lang.Length > 0)
{
locale = lang[0];
}
else
{
// you need a default as the browser might not send a language
locale = "en-GB"; // UK
// locale = "en-US"; // US
}
CultureInfo c = new CultureInfo(locale);
string d = DateTime.Now.ToString(c);
string n = (1000000.11).ToString("C", c);
if you don't want to have to update your ToString functions to accept the culture you can do this instead
CultureInfo c = new CultureInfo(locale);
Session.LCID = c.LCID;
string d = DateTime.Now.ToString();
string n = (1000000.11).ToString("C");