mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-26 11:58:20 +02:00
16 lines
295 B
ObjectPascal
16 lines
295 B
ObjectPascal
Program Example5;
|
|
|
|
{ This program demonstrates the IsValidDate function }
|
|
|
|
Uses SysUtils,DateUtils;
|
|
|
|
Var
|
|
Y,M,D : Word;
|
|
|
|
Begin
|
|
For Y:=2000 to 2004 do
|
|
For M:=1 to 12 do
|
|
For D:=1 to 31 do
|
|
If Not IsValidDate(Y,M,D) then
|
|
Writeln(D,' is not a valid day in ',Y,'/',M);
|
|
End. |