title: how to apply date format to anchor tag on View
body: <p>I am using below code to create anchor tag</p>
  
  <pre><code>@if (Model.History != null &amp;&amp; Model.History.Count &gt; 0)
   {
      foreach (var item in Model.History)
      {
        &lt;a href="@Url.Action("Process", new {item.Id})" class="list-group-item"&gt;@item.Id - @item.Name - @item.CreatedOn&lt;/a&gt;
      }
   }
   else
   {
     &lt;a href="#" class="list-group-item"&gt;No Previous History Found&lt;/a&gt;
   }
  </code></pre>
  
  <p>I want to apply date format as June 27, 2017 9:46 PM to @item.CreatedOn</p>
  
  <p>I would like to use moment.js as well for showing local time.</p>
  
  <p>Someone please help me.</p>