How to I introduce culture information into formatted strings

Platform: WinForms| Category: Strings

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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.