Date format from OS settings

  • Thread starter Thread starter G. de Nooij
  • Start date Start date
G

G. de Nooij

I have installed my OS Windows XP with Date settings dd-mm-yyyy. And
installed Framework 1.1.

I've changed the date format with Regional and Language Options to
mm-dd-yyyy, but when I run my aspx application build with Borland Delphi, it
still views the date in dd-mm-yyyy format...

I tried re-install the framework, but that didn't make a difference.

I'm out of options...
 
you may change the CultureInfo of your application also..

try CurrentThread.CultureInfo property and take a look at the
System.Globalization.CultureInfo class..
 
ASP.NET doesn't use the OS settings. It is in the globalization section in
the web.config file. This way you don't depend on a setting that is external
to your web application...
 
But how can I set it to en-EN?

Patrice said:
ASP.NET doesn't use the OS settings. It is in the globalization section in
the web.config file. This way you don't depend on a setting that is
external
to your web application...
 
It's set to nl-NL, how can I change it to en-US?

Murat Karatutlu said:
you may change the CultureInfo of your application also..

try CurrentThread.CultureInfo property and take a look at the
System.Globalization.CultureInfo class..
 
assuming you have already included the namespaces
System.Threading
and System.Globalization

Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
and
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
 
Back
Top