How to query data expiration time in mysql php : <p>In my Database I have products that i saved with the expiration timestamp in the format  eg. <strong>2018-22-08</strong>. Please how do I select all products that will expire in less than 4 days.</p>

<p>I have tried</p>

<pre><code>SELECT * FROM table WHERE expiration_timestamp = DATE_ADD(CURDATE(), INTERVAL 4 DAY)
</code></pre>
