>>
>>See
Birthday Query in VFP for a query that addresses your concern.
>
>OK, thanks. I find the solution with gomonth() quite interesting.
>
>Anyway, I already finished coding this - the solution I used is to extract the last four digits of all dates (dtos()) and doing comparisons based on this.
Unless you're concern with performance, one query is better than a bunch of code.
--sb--