473,405 Members | 2,300 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,405 software developers and data experts.

*very* strange date issue


hi,

i am having big issues in deploying my asp.net web application
to our web server.

dates do not behave the same as on my development machine yet
the web.config files are the same and both have the same
regional settings.

for example Date.Today on the server returns 25/00/2003 !?!?!?!

any ideas ppplleeaaassseeee ?

thnx.

t.
Nov 17 '05 #1
2 2165
I had a similar problem a week or two ago, I'm not sure if
this is the solution but it worked for me. Set the culture
property of the document to whatever you need. i.e. en-GB
-----Original Message-----

hi,

i am having big issues in deploying my asp.net web applicationto our web server.

dates do not behave the same as on my development machine yetthe web.config files are the same and both have the same
regional settings.

for example Date.Today on the server returns 25/00/2003 !?!?!?!
any ideas ppplleeaaassseeee ?

thnx.

t.
.

Nov 17 '05 #2

found the problem ....

in my control panel | regional settings my "Short date format" was
(correctly) set to "dd/MM/yyyy".

but i was suspicious of this because i kept getting 00 back as the month
regardless
of my culture, format etc... (see my previous posts).

so, i went into regedit and did a search for "dd/mm/yyyy" and lo-and-behold
i found a
string called 'sShortDate' in 'HKEY_USERS/default/control
panel/international'
that was set to 'dd/mm/yyyy'. i changed this to 'dd/MM/yyyy' and everything
works now.

i kept searching and found another one in
'5-1-5-21-[...snip..]/default/control panel/international'
and i changed this also.

i wonder, is this issue documented anywhere and how did sShortdate get set
like this?

anyway, thnx for ur help guys and i hope this post will help someone else.

t.

"Tariq Ahmad" <ta*********@hotmail.com> wrote in message
news:#p**************@tk2msftngp13.phx.gbl...

hi,

i am having big issues in deploying my asp.net web application
to our web server.

dates do not behave the same as on my development machine yet
the web.config files are the same and both have the same
regional settings.

for example Date.Today on the server returns 25/00/2003 !?!?!?!

any ideas ppplleeaaassseeee ?

thnx.

t.

Nov 17 '05 #3

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

Similar topics

9
by: Abby Lee | last post by:
http://www.ncsa.uiuc.edu/Divisions/Admin/reimb.asp There is just too much code to place here. onChange you trigger a function to add the numbers in the the column you entered an amount in...
10
by: Trapulo | last post by:
Why Now.Date.Subtract(New Date(2000, 1, 1)).Days returns 731529?? It is a too big value a think! I aspect something as 1030-1100....
1
by: Maileen | last post by:
Hi, I finished my application butonce again i have some strange behavior with XML/text functions... for example, here below is a function which worked perfectly till now and now generate an...
6
by: Chris Ashley | last post by:
I have been tearing my hair out (or indeed, what's left of it) all day with this one. I'm not sure if it's a .NET issue, a server issue or anything else and would appreciate any guidance. ...
2
by: peter | last post by:
Hi, I have very strange situation but first description ;) I have: 1) project in VB.NET, in this f.e. 1 function: Public Function Login(ByVal UserName As String, ByVal UserPassword As...
3
by: Jeremy Chapman | last post by:
I've created a web service method which looks like public MatchResult CheckMatch(MatchData MatchValues) MatchData is a class defined as: public class MatchData { public string GivenName;...
4
by: Efy | last post by:
Hi, I was debugging my JavaScript in VS2005, the script probably had an error some ware (Line 25), after I fixed the error, I am trying to run the page again I am getting the same error "Illegal...
112
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not...
3
by: Vish4u | last post by:
Hello Everyone, I have a encountered a strange issue with the execution of my stored procedure on clients machine. My stored procedure contains a cursor in which there is a select statement...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.