Hi:
I have a simple function that I need to use to find the next Date or even a previous date.
However, it returns Today's date without doing the addition to the date.
-------------------------------------------------------------------------------------------------------------------
function getDate(DateValue: DateTime, moveDays: integer) : DateTime;
begin
result := Date + moveDays;
end;
ShowMessage(DateToStr(getDate(Date, 1)); // display tomorrow's date
ShowMessage(DateToStr(getDate(Date, -1)); // display yesterday's date
-------------------------------------------------------------------------------------------------------------------