Well, the first thing you need to decide is a cut-off year. For example, if the date in your table is 1 January 1995, then you probably want to keep the year as 1995, not make it 2095. But if the date is 1 January 1905, you probably want to make it 2005.
So, let's say you decide the cut-off year is 50. You could do something like this:
[tt]USE TheTable
REPLACE ALL Sch_Date with GOMONTH(Sch_Date, 1200) FOR MOD(YEAR(Sch_date), 100) < 50[/tt]
Alternatively, you might want to say that if the year is less than the current year, change the 19 to 20. That would be appropriate if you were working with past dates, such as birthdates. In that case, you could do this:
[tt]USE TheTable
REPLACE ALL Sch_Date with GOMONTH(Sch_Date, 1200) FOR MOD(YEAR(Sch_date), 100) < MOD(YEAR(DATE()), 100)[/tt]
I am assuming that, although this is an FPDos table, you are actually working in VFP. The above code won't work in Fox 2.x or below, because there would be no GOMONTH() function. If you are still using an older version, then post the question in the relevant forum here on Tek Tips.
NOTE: I haven't tested the above code. Since it makes global changes to your table, be sure to take a backup before you start.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads