Different Query output between filter using (Simple filter gui) and in script


I'm trying to write a query in Action with type script to get all IT equipment which its LastScan date greater than some value, although when i filter using simple filter i got 3 records which match the condition, when i apply the query in script it returns 0 records.

This the SQL query syntax which i used :

lErr=AmQueryExec(hqCon,"SELECT  lComputerId FROM amComputer WHERE  dtLastScan>"& "#"& "2021-03-06 00:00:00" &"#") 

 AND this the output for simple filter query: