You use the CultureInfo class found in the System.Globalization namespace.
DateTime dt = DateTime.Now;
textBox2.Text = dt.ToString('D', new CultureInfo('de-DE'));
textBox3.Text = dt.ToString('D', new CultureInfo('fr-FR'));
You use the CultureInfo class found in the System.Globalization namespace.
DateTime dt = DateTime.Now;
textBox2.Text = dt.ToString('D', new CultureInfo('de-DE'));
textBox3.Text = dt.ToString('D', new CultureInfo('fr-FR'));
Share with