How to change date, time format in IIS
I have a local asp application running in iis v 5.1. I found the problem is in the IIS Server, because when I was probing the *.cls methods in a .EXE project, it took the date format from Windows, that is M/d/yyyy, and doing this comparation correctly: 05/15/2008 > 06/01/2008 --> False. But when I was into asp they do 05/15/2008 > 06/01/2008 --> True, it is obvious that it interprets 06/01/2008 as January 6, 2008 instead of the correct form June 1, 2008, and it is also obvious that the problem is in IIS date format.
I was searching in Internet how to change it and I Found a solution which suggests to include into the global.asa file the code:
Session.LCID = 1033 ' it is suited for english - United States
but it didnīt worked, it also suggests that if the solution above doesnīt work, I can place the same code at the top of each ASP page I wish to change the locale settings, but it didnīt work either.
Please I need some help, because all the date fields within the Informix Database I work with are in the m/d/yyy format.
I am curious why you say
Can you run the following in your code and let me know what is in the variable or if any errors are thrown?
it is obvious that it interprets ...
I would think there would be an error if it tries to do anything with a month of "15".
theMonth = Month("05/15/2008")
Also, post some code so I can take a look.
If you have dedicated hosting or have access to server control panel, than simply change the format from "DATE and TIME" option.
Date format issue
I am also facing the same problem, did u find any solutiom, please help
How exactly are you comparing your dates? Please post that code.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)