Template parse errors: Parser Error: Unexpected token 'Date'
<p>I have a angular2 app with typescript. I am trying to get current time. Here is my code </p>

<pre><code>&lt;div&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-lg-6"&gt;
          &lt;div class="gotoAndBot-Copy-3" &gt;
              gotoAndBot
          &lt;span class="-copy-2"&gt;
            {{new Date().toLocaleDateString()}}
          &lt;/span&gt;
          &lt;/div&gt; 
      &lt;/div&gt;

  &lt;/div&gt; 
&lt;/div&gt;
</code></pre>

<p>but it complains with <code>Template parse errors: Parser Error: Unexpected token 'Date'</code>
I am wundering why it does not recognize the <code>Date</code> </p>

<p>so how can i fix it?</p>