PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Developer ShortDate Format changing for no reason.

Reply

ShortDate Format changing for no reason.

 
Thread Tools Rate Thread
Old 20-03-2004, 11:15 AM   #1
Martin Stephenson
Guest
 
Posts: n/a
Default ShortDate Format changing for no reason.


The problem is seen in an ISAPI application running on Win2k Server/SP4.

The server ShortDate format is set to dd/MM/yyyy
The date format in HKEY_USERS/.DEFAULT/Control Panel/International/ is
correct too.

I have to process dates stored as strings in format YYYYMMDD (20040420). I
convert them into a string of 'DD/MM/YYYY' using substrings and then attempt
to convert that to a delphi TDate. Every now and then, and only for a brief
period of time the server shortdate format is strangely set to 'yyyy/mm/dd'
so the convert to Tdate fails. I have set up a stress test on the ISAPI
application and with 25 users constantly processing dates only a small
handful fail, the rest work before the failures and after the failures. We
can reproduce this on Win2k Server/SP4 on more than one server ??

I have trapped the exception and written the shortdate format out to a log
file, it does indeed go to yyyy/mm/dd.

Regards
Martin


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off