Language:
Русский
English
{MsDos.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the MsDos procedure.}
uses WinCrt, WinDos;
var
date, year, month, day: string;
regs: TRegisters;
begin
regs.ah := $2a;
with regs do
msdos(regs);
with regs do
begin
str(cx ,year);
str(dh ,month);
str(dl,day);
end;
date := month+'/'+day+'/'+year;
writeln('Today''s date is ', date);
end.