2
I compared two dates. When the variable 'date' contains the date of TODAY, 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;
Is he not bringing the full date (dd:mm:yyyy hh:mm:ss) ? Depending on what was recorded, he will understand that it is smaller. The good thing would be to truncate the variable in comparison...
– Diego
I also think this is it (hh:mm:ss), how do I "truncate"?
– Italo Rodrigo
Trunc(Seucampodatetime)
– Diego
http://stackoverflow.com/questions/1760929/how-to-encode-a-datetime-in-delphi
– Diego
It worked using Trunc, thanks .
– Italo Rodrigo
I will answer her and you will accept the answer from her. It is recorded for someone who also has this doubt.
– Diego