Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ctod bug
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Ctod bug
Miscellaneous
Thread ID:
00105986
Message ID:
00105986
Views:
95
Hey folks!

We found what seems to be a bug, both in VFP 5.0a and VFP6 beta. Maybe some of you have encountered it before, but we never read about it on the Compuserve forum, so we thought we'd post it.

set date to long
?ctod("01/01/1597") returns nothing (or empty string)
set date to short
?ctod("01/01/1597") returns nothing (or empty string)
set date to YMD
?ctod("01/01/1597") returns / /

should be 01/01/97, right? Works fine with other date formats. Plus,

set date to short
?ctod("01/01/1597") + 1500 returns 9-02-01, correct!

We concluded that CTOD doesn't work correct (at least doesn't return correct values) for dates < 01/01/1601. Has anyone seen this before?

greetings,
derk schutte
Derk Schutte
Next
Reply
Map
View

Click here to load this message in the networking platform