📅  最后修改于: 2022-03-11 14:54:56.231000             🧑  作者: Mango
var
currentDate: TDateTime;
begin
currentDate := Now;
ShowMessage(DateToStr(currentDate)); //Show the current date
ShowMessage(TimeToStr(currentDate)); //Show the current time
end;