PDA

View Full Version : Urgent DOW & CDOW problems


ABC123

Thomas Henkel
10-26-2000, 05:53 AM
I just ran into a problem with th e DOW and CDOW functions. It seems that the functions dont "like" the dates between 12/01/2000 and 12/09/2000. We use the dow function quite often for reporting purposes, and losing 9 days of information could be disasterous. The functions report back either jibberish or incorrent numbers and days. If anyone knows of a solution, please let me know.

The Test:

date1 = {12/01/2000}
day = dow(date1)
ui_msg_box("DOW for "+dtoc(date1),"DOW = "+str(day,2,0))

The Result:

Message box displays "DOW = -1"

Test it yourself, and see what happens.
After 12/09/2000, the results go back to expected.

CraigSchumacker
10-26-2000, 12:56 PM
Thomas:

The solution is quite simple. If you search this board, you will find a post from 2/14/00 by Steve Workings, who co-authored a solution. It's very simple to resolve!

Craig

Melvin Davidson
10-26-2000, 01:15 PM
In addition to Craig's suggestion, I also recommend you contact Cal Locklin at calocklin@aol.com and get a copy of his Y2K scripts. A5V1 is not fully Y2K compliant (as you found out). Cal has some VERY useful routines that overcome your problem and others.

Tell him I sent you and said hello. :)
Melvin

Thomas Henkel
10-27-2000, 05:06 AM
Thanks,
It seems so simple. My only questions is why am I only finding this problem in December???

Thomas Henkel
10-27-2000, 05:07 AM
Very early on, I applied Cal's scripts to my system.