Question
It is possible to localize the Calendar (month & day) name in the GTP.NET?
Thanks
Answer
The easiest way to localize the date and time related information is to assign a new culture setting;
private void comboBoxCulture_SelectedIndexChanged(object sender, System.EventArgs e)
{
if (comboBoxCulture.SelectedIndex>-1)
{
dateScaler1.CultureInfoDateTimeFormat=new CultureInfo( comboBoxCulture.Items[comboBoxCulture.SelectedIndex] as string, false ).DateTimeFormat;
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
comboBoxCulture.Items.Clear();
foreach ( CultureInfo ci in CultureInfo.GetCultures( CultureTypes.SpecificCultures ) )
{
comboBoxCulture.Items.Add(ci.Name);
}
}