title: Javascript function not getting called from razor
body: <p>I know I've done this before but can't figure out how. Given the following, I want to output the date. The problem I get is getDate('@Model.Date') is written.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function getDate(date) {
          var offset = new Date().getTimezoneOffset();       
          var dt = new Date(date);
          dt.setHours(dt.getHours() + (offset / -60));        
          return dt;
      }
  &lt;/script&gt;
  
  &lt;div class="time"&gt;
      &lt;font class="time time-type"&gt;@Model.DateType:&lt;/font&gt; &lt;font class="time"&gt;getDate('@Model.Date');&lt;/font&gt;
  &lt;/div&gt;
  </code></pre>