Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Setting date format, regional settings for ASP.NET

Reply
Thread Tools

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

 
 
Phil Winstanley [Microsoft MVP ASP.NET]
Guest
Posts: n/a
 
      06-15-2004
Hi,

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

System.Threading.Thread.CurrentThread.CurrentCultu re = new
System.Globalization.CultureInfo("en-AU");
System.Threading.Thread.CurrentThread.CurrentUICul ture = new
System.Globalization.CultureInfo("en-AU");

Hth,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting client side regional settings date format =?Utf-8?B?b3B0aWNzdG9ybQ==?= ASP .Net 3 07-12-2005 01:34 PM
Setting date format, regional settings for ASP.NET =?Utf-8?B?RGF2aWQgTGVlIEFV?= ASP .Net 0 06-15-2004 02:53 AM
Setting date format, regional settings for ASP.NET David Lee AU ASP General 1 06-15-2004 02:33 AM
How can i get the date formatted according to the regional settings made at the operating system level Karunakararao ASP .Net 0 05-11-2004 09:51 AM
Where does DateFormat.ShortDatePattern and 'Regional Settings/Date tab' Phil ASP .Net 0 11-06-2003 09:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57