Author: Lou Adler
Did you know that you can easily compare dates by using the "EncodeDate()"?
Answer:
Here are some examples:
1 uses2 SysUtils;
3 4 {...}5 6 if (Date > EncodeDate(1997, 1, 1)) then7 begin8 { display "this program has expired" }9 end;
10 11 {...}12 13 if (EncodeDate(1997, 1, 1) > EncodeDate(1996, 1, 1)) then14 begin15 {...}16 end;