Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2006, 08:31 AM
Authorized User
 
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default date time setting for asp.net web application

hi all,

I have developed web application which is properly running on on the web server. I globalisation tag I have set culture to GB an the database(sql server 2000) user's settings are also set British english. I have configured the same application on local machine for some modification. The regional setting of the local machine are set to UK.

but still on local machine the dates in the application are getting displayed in mm/dd/yyyy format and some pages are giving error dure date format.

how do I solve this problem? I need to do the changes on urgent basis but application is not working on local machine? Am I missing something in setting???

I have also set the session LCID in global.asax file to 2057.

Please help. its urgent!!!

 
Old November 8th, 2006, 08:59 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default


'using this u can set languages as users default languages
Dim sLang As String = Request.UserLanguages(0)

'this will set ur date format and currency
Thread.CurrentThread.CurrentUICulture = New CultureInfo(sLang)

hread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(sLang)


hope this will help u

all the best






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Web Application Administration dcct84 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 September 24th, 2007 04:28 PM
ASP.NET Web Application swifty_programmer ASP.NET 2.0 Professional 14 July 20th, 2007 08:05 AM
setting date/time fields back to null value badgolfer Access 1 August 8th, 2005 02:29 AM
Convert ASP web application to ASP.NET Steve777 ASP.NET 1.0 and 1.1 Basics 3 June 2nd, 2005 07:26 AM
Setting date format from ASP.NET jonashilmersson Crystal Reports 0 November 14th, 2003 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.