I think that your date is coming into crystal as text instead of as a date.
If you do this in crystal: cdate(1,1,1) then you get 01/01/1 as the date (as expected)
But if you do this: cdate('0001-1-1') then you get 01/01/2001 as the date (as you're seeing)
Depending on what you're doing you may have to exclude based on the text of '0001-1-1' instead of based on the date value.
The alternative would be to parse the text string out into it's numeric componenets and then pass those individual components into the cdate function.
frodoman
Main Topics
Browse All Topics





by: mlmccPosted on 2004-05-11 at 13:03:06ID: 11044154
As I recall Crystal use 0000-00-00 as the NULL date.
mlmcc