How to calculate X days ago in javascript
<p>In my application I am accessing a remote URL and getting a JSON response like below. The JSON response has a property called <code>created_at</code>. </p>

<p>In JavaScript I need to get the current date minus(-) the <code>created_at</code> date and calculate how many days ago the comment was created.</p>

<p>How can I do that?</p>

<pre><code>{  
   "id":12578834,
   "title":"Joint R&amp;D Has Its Ups and Downs",
   "url":"http://semiengineering.com/joint-rd-has-its-ups-and-downs/",
   "num_points":1,
   "num_comments":0,
   "author":"Lind5",
   "created_at":"9/26/2016 2:28"
}
</code></pre>