I want to convert the datetime to Swedish Culture.
DateTime.Today.ToString("dd MMMM yyyy");
Above line of code gives me results as 27 December 2013
I want to have results which display december in swedish language.
You should use Swedish Culture for that:
DateTime.Today.ToString("dd MMMM yyyy", CultureInfo.GetCultureInfo("sv-SE"));
If Swedish should be used in each ToString()
you can set up CurrentCulture:
// Or/And CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("sv-SE");
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("sv-SE");
...
// Since Current Culture is Swedish, there's no need to put it explicitly
DateTime.Now.ToString("dd MMMM yyyy");