Returns the current date.
function Date: TDateTime;
TDateTime Date();
Use Date to obtain the current local date as a TDateTime value. The time portion of the value is 0 (midnight).
C++ Examples:
Delphi Examples:
{ This example uses a label and a button on a form. When the user clicks the button, the current date is displayed in the caption of the label: } procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption := 'Today is ' + SysUtils.DateToStr(Date); end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|