Answers for "get current date delphi"

3

get current date delphi

var
  currentDate: TDateTime;
begin
  currentDate := Now;
  ShowMessage(DateToStr(currentDate)); //Show the current date 
  ShowMessage(TimeToStr(currentDate)); //Show the current time
end;
Posted by: Guest on October-10-2020

Browse Popular Code Answers by Language