473,382 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Date error in ASP.NET

Hi there,

I wasn't sure where to post this problem, but I think It make most sense in
this group.
We have a new development W2K3 server with IIS and we have installed our
home grown 'Leave Booking' ASP.NET application on it. When we run our
application the dates are being displayed in American Format, causing an
error in our application. We have installed the application on another
development server and it works OK (both points to the same database, so we
have ruled that out). Now, we have checked the international settings and
the date/time setting in the control panel and they all seem to be the same.
As a test I wrote a quick windows app. which displays the dates in a listview
and on both servers it displays OK (British format). This means the problem
seems to lie in the web application.

Does anyone have any ideas?

Cammie
Nov 19 '05 #1
2 1678
I have seen something similar with a web service I wrote. Worked fine at our
office but once it was installed on a clients IIS box we got a similar
problem to yourself.

Was the .NET Framework installed whilst the regional setting where still US?

The problem on our clients machine was that the regional setting on the IIS
box where US when the .NET framework was installed and that meant the ASPNET
accounts profile was set to US.

I don't know how to fix the problem but I hope this points you in the right
direction. Maybe try creating a web page that displays the settings.

Chris.

"Cammie Watson" wrote:
Hi there,

I wasn't sure where to post this problem, but I think It make most sense in
this group.
We have a new development W2K3 server with IIS and we have installed our
home grown 'Leave Booking' ASP.NET application on it. When we run our
application the dates are being displayed in American Format, causing an
error in our application. We have installed the application on another
development server and it works OK (both points to the same database, so we
have ruled that out). Now, we have checked the international settings and
the date/time setting in the control panel and they all seem to be the same.
As a test I wrote a quick windows app. which displays the dates in a listview
and on both servers it displays OK (British format). This means the problem
seems to lie in the web application.

Does anyone have any ideas?

Cammie

Nov 19 '05 #2
Cammie:
If you suspect the error is in the application, seeing some code might be
helpful. Having said that, check out
http://samples.gotdotnet.com/quickst...alization.aspx
and pay particular attention to the section before the end with respect to
setting the @Page's CurrentCulture attribute to the culture you want (en-GB)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Cammie Watson" <cw*****@pkc.gov.uk.(donotspam)> wrote in message
news:E5**********************************@microsof t.com...
Hi there,

I wasn't sure where to post this problem, but I think It make most sense
in
this group.
We have a new development W2K3 server with IIS and we have installed our
home grown 'Leave Booking' ASP.NET application on it. When we run our
application the dates are being displayed in American Format, causing an
error in our application. We have installed the application on another
development server and it works OK (both points to the same database, so
we
have ruled that out). Now, we have checked the international settings and
the date/time setting in the control panel and they all seem to be the
same.
As a test I wrote a quick windows app. which displays the dates in a
listview
and on both servers it displays OK (British format). This means the
problem
seems to lie in the web application.

Does anyone have any ideas?

Cammie

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: kauserk | last post by:
Hello: I have an access database that stores employee timings by date. At the same time, I have a form that queries this database. On the form I use a DTpicker to enable a user input the date...
10
by: Jack | last post by:
Hi, I cannot get the date format correctly in dynamic sql statement, after trying various ways of handling it. I need some help with the date format in the following dynamic sql statement. Any...
15
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract...
32
by: paul | last post by:
HI! I keep on getting this error and I have tried different things but I am not sure how to send the expiring date. The error that I am getting in Firefox 1.5 is "Error: expires.toGMTString is...
1
by: JonathanParker | last post by:
Another quick one! Trying to search for records by both accounting period and by year in two seperate queries actioned by option buttons. I've sorted the formatting so it's in a UK format but I...
6
by: Jana | last post by:
Greetings Access Gurus! I am working on an app to send batch transactions to our bank, and the bank requires that we place an effective date on our files that is 'one business day in the future,...
3
by: bhavu10 | last post by:
hi i have created a form forreport with today, week month & year CMD Button but i think i wrote the code wrong for month and also it shows me only records for this year whewe as i have 2006...
2
by: LadySugar | last post by:
Greetings! I have a database in access that contains information about the date members joined the company. Every year, membership must be renewed for each member. Usually I will send out a...
5
Stang02GT
by: Stang02GT | last post by:
I have been asked to validate a date on our web-page so that people cannot enter dates like 14/1/08 or 2/30/06. I have found code that will do exactly what i need it to do, but i am not sure how to...
6
by: DavidPr | last post by:
I have a website that allows people to post ads. Ads remain active for 30 days. In their control panel they can manage their ads, i.e., Edit, Delete, Renew, etc. In this case I'm working with the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.