Hi
1. FPD has the problem relating to date for the current century. Example..
SET CENTURY OFF
DATE() wil display todays correct date.
But myDt=DATE()
@ 5,5 get myDate
READ
and now change anything in this myDate
? DTOS(myDate) it will show that it belongs to 102 year rather than 2002 year.
This is the long discussed CENTURY problem in FPD.
RESOLUTION.. SET CENTURY ON and do the above .. there will be no problem.
2. Now.. if you have allowed the date fields to be altered keeping the century off... errors would have got in..
SO what you can do is to rectify it.. by code.. using example..
REPLACE ALL chart.completed WITH ;
GOMONTH(chart.Completed,1200) ;
FOR YEAR(chart.completed) < 2000
From now on take care that the date field is accepted with proper centure.
AgeDays = DATE()-chart.completed will give correct answer in days.
ramani

(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Merry Christmas & Happy New Year