I am trying to filter between two dates on a SQL server from a PHP process.

This is the query:

```
select *
from webStocks
where FECHAMODIFICADO between '2020-06-03 17:16:02' and  '2020-06-04 17:16:03'
ORDER BY webStocks.FECHAMODIFICADO DESC

```

This is the result:

[![enter image description here](https://i.stack.imgur.com/2uxPZ.png)](https://i.stack.imgur.com/2uxPZ.png)

The result is not what I want. In the table I have the following information and it should be the result.

[![enter image description here](https://i.stack.imgur.com/4foWy.png)](https://i.stack.imgur.com/4foWy.png)

What am I doing wrong in the query?:(