Server date format changing.

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

We are running an ISAPI web application on Win2k (Sp4)/IIS5. The shortdate
format for the default user and as far as I can see, all users which connect
to the server is set to dd/MM/yyyy, which is correct.

The ISAPI application will function correctly for a period of time,
sometimes a day, sometimes only several hours. Then seemingly without any
reason the application begins to retrieve dates in format yyyy/MM/dd. This
causes application exceptions when processing the system generated dates and
comparing with database dates etc. Restarting IIS and so
unloading/reloading the ISAPI dll fixes the problem and the format reverts
to dd/MM/yyyy.

Does anyone have any thoughts on this.

Thanks, and happy new year
Martin
 
You might want to ask the application developer to incorporate the format
function something like.
Format(Date, "dd/MM/yyyy")

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
http://www.microsoft.com/protect.

:
| We are running an ISAPI web application on Win2k (Sp4)/IIS5. The
shortdate
| format for the default user and as far as I can see, all users which
connect
| to the server is set to dd/MM/yyyy, which is correct.
|
| The ISAPI application will function correctly for a period of time,
| sometimes a day, sometimes only several hours. Then seemingly without any
| reason the application begins to retrieve dates in format yyyy/MM/dd.
This
| causes application exceptions when processing the system generated dates
and
| comparing with database dates etc. Restarting IIS and so
| unloading/reloading the ISAPI dll fixes the problem and the format reverts
| to dd/MM/yyyy.
|
| Does anyone have any thoughts on this.
|
| Thanks, and happy new year
| Martin
|
|
 
Hi. I am the developer :)

The application does set the date format, but only when the thread is first
initialised. Something in the operating system is updating the date format
after that and causing it to fail. Like I said, restarting the IIS service
reloads the dll and everything is fine again, for a while.

As a short term fix we've forced the date format for every page request
rather than just at initialisation. I'd still like to know what in the OS
is causing this to happen

Cheers
Martin
 
You'll have better luck posting to one of the development groups.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
http://www.microsoft.com/protect.

:
| Hi. I am the developer :)
|
| The application does set the date format, but only when the thread is
first
| initialised. Something in the operating system is updating the date
format
| after that and causing it to fail. Like I said, restarting the IIS
service
| reloads the dll and everything is fine again, for a while.
|
| As a short term fix we've forced the date format for every page request
| rather than just at initialisation. I'd still like to know what in the OS
| is causing this to happen
|
| Cheers
| Martin
 
Have you checked the regional options in control panel on
the server to see if the date, short date format is set
correctly?
 
If that makes a difference then I would think the developer needs to go back
to the drawing board.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
http://www.microsoft.com/protect.

:
| Have you checked the regional options in control panel on
| the server to see if the date, short date format is set
| correctly?
 
Back
Top