carjbga
05-11-2009, 06:49 PM
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:
Sub Session_OnStart
Session.LCID = 1033 ' it is suited for english - United States
End Sub
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 was searching in Internet how to change it and I Found a solution which suggests to include into the global.asa file the code:
Sub Session_OnStart
Session.LCID = 1033 ' it is suited for english - United States
End Sub
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.