British date instead of american

  • Thread starter Thread starter Gina
  • Start date Start date
G

Gina

I normally use this line: Session.LCID = (2057)
in my code so that all date fields are british and not american in format.

How might I do this when using a console application? It doesn't 'Session'.

Thanks!

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
I normally use this line: Session.LCID = (2057)
in my code so that all date fields are british and not american in format.

How might I do this when using a console application? It doesn't 'Session'.

Thanks!

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Try this:

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-gb");
 
Back
Top