title: mustache.js date formatting
body: <p>I have started using mustache.js and so far I am very impressed. Although two things puzzle me. The first leads on to the second so bear with me.</p>
  
  <p><strong>My JSON</strong> </p>
  
  <pre><code>{"goalsCollection": [
      {
          "Id": "d5dce10e-513c-449d-8e34-8fe771fa464a",
          "Description": "Multum",
          "TargetAmount": 2935.9,
          "TargetDate": "/Date(1558998000000)/"
      },
      {
          "Id": "eac65501-21f5-f831-fb07-dcfead50d1d9",
          "Description": "quad nomen",
          "TargetAmount": 6976.12,
          "TargetDate": "/Date(1606953600000)/"
      }
  ]};
  </code></pre>
  
  <p><strong>My handling function</strong></p>
  
  <pre><code>function renderInvestmentGoals(collection) {
      var tpl = '{{#goalsCollection}}&lt;tr&gt;&lt;td&gt;{{Description}}&lt;/td&gt;&lt;td&gt;{{TargetAmount}}&lt;/td&gt;&lt;td&gt;{{TargetDate}}&lt;/td&gt;&lt;/tr&gt;{{/goalsCollection}}';
      $('#tblGoals tbody').html('').html(Mustache.to_html(tpl, collection));
  }
  </code></pre>
  
  <p><strong>Q1</strong>
  As you can see my 'TargetDate' needs parsing but I am unsure of how to do that within my current function.</p>
  
  <p><strong>Q2</strong>
  Say I wanted to perform some function or formatting on one or more of my objects before rendering, what is the best way of doing it?</p>