|
Get difference between of 2 dates
You can use operation of a difference between dates. The answer is a count of days between them.
procedure TForm1.Button1Click(Sender: TObject);
begin
Label3.Caption:=FloatToStr(
StrToDate(Edit1.Text)-StrToDate(Edit2.Text))+
' days between of this dates';
end;
- Related topics
-
Put current time to the title
Get days count in month
Get week number of the year
Get age from date of birth
- For more
-
Delphi Help
- Download source
|