Re: Setting date format, regional settings for ASP.NET

Discussion in 'ASP .Net' started by Phil Winstanley [Microsoft MVP ASP.NET], Jun 15, 2004.

  1. Hi,

    What you'll need to do is set these Static variables on each Request: -

    System.Threading.Thread.CurrentThread.CurrentCulture = new
    System.Globalization.CultureInfo("en-AU");
    System.Threading.Thread.CurrentThread.CurrentUICulture = new
    System.Globalization.CultureInfo("en-AU");

    Hth,
    Phil Winstanley
    Microsoft ASP.NET MVP
    http://www.myservicescentral.com
     
    Phil Winstanley [Microsoft MVP ASP.NET], Jun 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Phil
    Replies:
    0
    Views:
    615
  2. =?Utf-8?B?RGF2aWQgTGVlIEFV?=

    Setting date format, regional settings for ASP.NET

    =?Utf-8?B?RGF2aWQgTGVlIEFV?=, Jun 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    2,767
    =?Utf-8?B?RGF2aWQgTGVlIEFV?=
    Jun 15, 2004
  3. =?Utf-8?B?b3B0aWNzdG9ybQ==?=

    Getting client side regional settings date format

    =?Utf-8?B?b3B0aWNzdG9ybQ==?=, Jul 12, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    8,603
    Mark Rae
    Jul 12, 2005
  4. David Lee AU
    Replies:
    1
    Views:
    236
    Aaron [SQL Server MVP]
    Jun 15, 2004
  5. Laurence Neville
    Replies:
    1
    Views:
    384
    Amiram Korach
    Dec 15, 2004
Loading...

Share This Page