I have a data from DateTime. with output = "10 October 2014". and I want output like this = "10 Oktober 2014".
This is my test code:
lblTglSuratKeluar.Text = suratKeluarc.TglSurat.ToString("dd MMMM yyyy"); //10 October 2014
var A = lblTglSuratKeluar.Text.Substring(3); //October 2014
var B = A.Substring(0, A.Length - 5); //October
=>So, how to use culturestype ??
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
string testOutPut = string.Join(Environment.NewLine, cultures.Select(c => String.Format("{0}: {1}", B, c.DateTimeFormat.GetMonthName(1))).ToArray());
please, help me...
Thanks...