ex5.pp 295 B

12345678910111213141516
  1. Program Example5;
  2. { This program demonstrates the IsValidDate function }
  3. Uses SysUtils,DateUtils;
  4. Var
  5. Y,M,D : Word;
  6. Begin
  7. For Y:=2000 to 2004 do
  8. For M:=1 to 12 do
  9. For D:=1 to 31 do
  10. If Not IsValidDate(Y,M,D) then
  11. Writeln(D,' is not a valid day in ',Y,'/',M);
  12. End.