I have the below line:
if (StrToDateTime(QueryNextRun.FieldByName('report_lastrun').AsString) > IncMinute(Now, -180)) then
Which fails to work, as I am using Delphi 4, and I guess IncMinute is in the later versions.
So my question is, how can I achieve the above in Delphi 4?
Just want to compare 2 date/time values, where the 1st comes from a SQL table (Format: dd/mm/yyyy HH:MM:SS) and the second is Now minus about 180 minutes