Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
pascal/SETYEAR.PAS
2001-11-30 12:14:44 +01:00

16 lines
282 B
Plaintext

program SetYear;
uses Dos;
var y,m,d,dow: word;
ec,ny: integer;
begin
GetDate(y,m,d,dow);
WriteLn('Datum im Computer: ',d,'.',m,'.',y);
Val(ParamStr(1),ny,ec);
SetDate(ny,m,d);
GetDate(y,m,d,dow);
WriteLn('Neues Datum : ',d,'.',m,'.',y);
end.