$year += 100 if $year < 30; [download]
Then just compare by number.
In reply to Re: Date comparison Y2K problem by moritz in thread Date comparison Y2K problem by Anonymous Monk