获取当前日期

代码示例

2
0

获取当前日期

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

类似页面

带有示例的类似页面

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................