PC Review


Reply
Thread Tools Rate Thread

ShortDate Format changing for no reason.

 
 
Martin Stephenson
Guest
Posts: n/a
 
      20th Mar 2004
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding field of ShortDate Format? Andrius B. Microsoft Dot NET 2 16th Jul 2009 02:20 PM
Insert null value in column-type is date/time & format is ShortDate,in Access 2002 billypit786@gmail.com Microsoft Access Forms 2 22nd Apr 2008 10:53 PM
Setting the System's ShortDate Format in RunTime =?Utf-8?B?Q29ubnVsbA==?= Microsoft VB .NET 7 18th Jun 2007 08:50 AM
Formating cells to only accept ShortDate format JShrimps, Jr. Microsoft Excel Programming 4 10th Dec 2003 04:04 AM
PPC 2003 - Wrong shortdate format Richard Kvist Microsoft Dot NET Compact Framework 2 22nd Aug 2003 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:55 AM.