📜  获取当前日期 delphi 代码示例

📅  最后修改于: 2022-03-11 14:54:56.231000             🧑  作者: Mango

代码示例1
var
  currentDate: TDateTime;
begin
  currentDate := Now;
  ShowMessage(DateToStr(currentDate)); //Show the current date 
  ShowMessage(TimeToStr(currentDate)); //Show the current time
end;