title: Why does querying date provides wrong output/result in laravel
body: <p>I have a <code>uploaded_at</code> column in database having type as timestamp.</p>
  
  <pre class="lang-php prettyprint-override"><code>$from = date("d-m-Y", strtotime("-2 months"));
  $data = Post::where('uploaded_at' , '&gt;' , $from)-&gt;paginate(20);
  </code></pre>
  
  <p>This piece of code is giving all the data from the post table where I needed only the last 2 months post.</p>