In firebird 3.0 database, data is stored in the data1 field of the Timestamp type. Need to compare the value from the data1 field with the current date?

if (Form1.Query1data1.AsDateTime <>date()) then ... 
  • What's the problem? You yourself gave a code example - German Borisov
  • should be: if Trunc (Query1.fieldbyname ('timestampfield'). AsDatetime) <> Dateof (Now) then ... thanks. - Delphi159
  • or: if DateOf (Query1data1.FieldByName ('FTIMESTAMP'). AsDateTime) = Date () then - Delphi159

0