title: Filtering Date in Javascript
body: <p>I am trying to filter an array which contain date(converted from string) which is greater than a particular date..</p>
  
  <pre><code>_this.downloadData.forEach(_d =&gt; _d.LogTime = _d.LogTime.toString());
  
  console.log(_this.downloadData.filter(x=&gt;new Date(x.LogTime) &gt; new Date('3/11/2019 7:29:12 AM')));
  </code></pre>
  
  <blockquote>
    <p>But filter always return zero items</p>
  </blockquote>
  
  <p>.</p>
  
  <p>Array looks like below:</p>
  
  <pre><code>[0 … 99]
  0:
  CPUStat:""
  Connectivity:""
  DiskStatus:""
  HostName:"HOSTname"
  LastRebootStatus:null
  LogTime:"Mon Mar 11 2019 07:39:12 GMT+0530 (India Standard Time)"
  
  __proto__:
  Object
  </code></pre>