title: Formatting String to Date in JS
body: <p>I'm sure this is a simple question, but I can't for the life of me solve it.</p>
  
  <p>I have a JSON object as so:</p>
  
  <pre><code>    {
      "_id": {
          "$oid": "57cb5aac9bd9a31100c793d1"
      },
      "reminders": [
          "2014-03-12T12:00:00",
          "2014-03-12T13:37:27",
          "2014-03-12T13:37:27",
          "2014-03-12T22:14:27"
      ],
      "user": "xxx"
  }
  </code></pre>
  
  <p>I want to parse the date from the reminders is JS to a date object in a loop, as so.</p>
  
  <pre><code>for (var i = userSchedule.reminders.length - 1; i &gt;= userSchedule.reminders.length - 1; i++)
      {
      var date = new Date(userSchedule.reminders[i]);
      }
  </code></pre>
  
  <p>But it just displays invalid date whenever I log it. Any ideas?</p>