I made a comparison between two dates. When the variable 'date' contains the TODAY date, the code understands that it is smaller
if data < now then
begin
...//se a variável DATA fosse igual a hoje (now), ele iria executar esse comando como se DATA fosse menor que NOW
end;