I have a textbox with date type:
@Html.TextBoxFor(m => m.DateOfBirth, new { @class = "form-control", type = "date" })
of the model's field DateOfBirth
[Required]
[DataType(DataType.Date)]
public DateTime DateOfBirth { get; set; } // Дата рождения
But date format is static mm/dd/yy which is wrong for Russian (dd/mm/yy). Of course I can set date format manually, but the system is multi-lingual and has English language as well as Russian, Kyrgyz, Uzbek (they all use European formats). When a user change a language
Thread.CurrentThread.CurrentCulture =CultureInfo.CreateSpecificCulture(lang);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
He supposed to see appropriate date format. But somewhy it doesn't happen :(
I have explored that the format depends on the language the browser uses. But chrome can't be displayed in Kyrgyz language...