title: MVC helper class parameter issue
body: <p>i have an issue in passing parameter to helper class</p>
  
  <p>My model</p>
  
  <pre><code>public DateTime? dTime { get; set; }
  </code></pre>
  
  <p>Helper class as answered by Darin Dimitrov</p>
  
  <pre><code>public static IHtmlString MyFunction(this HtmlHelper html, DateTime value)
          {
              return new HtmlString(value.ToString("dd/MM/yyyy"));
          }
  </code></pre>
  
  <p>and am accessing in myview to convert datetime</p>
  
  <pre><code>foreach (var item in Model.lstCommet)
  {
   &lt;div class="comment_time"&gt;@Html.MyFunction(item.dTime)&lt;/div&gt;
   }
  </code></pre>
  
  <p>but am getting <code>"ASP.DetailPageHelper.convertTime(System.DateTime)' has some invalid arguments"</code></p>
  
  <p>what i am doing wrong ?</p>