Hi Tsair,
Use the CultureInfo class. Change the CultureInfo in the CurrentThread class
System.Threading.Thread.CurrentThread.CurrentCultu re =
CultureInfo.CreateSpecificCulture("en-US");
label1.Text = DateTime.Now.ToString();
Store the CultureInfo reference before changing it if you need to change it back to the original.
On Sat, 14 Jan 2006 06:14:28 +0100, Tsair <ls*****@yahoo.com> wrote:
I would like to use the date format as dd/mm/yyyy, normaly i have to set the
Windox XP culture info. How to set the application culture to the format i
need winthout change the Windox XP setting ?
Thanks.
--
Happy coding!
Morten Wennevik [C# MVP]