title: ASP.NET MVC Editor Templates
body: <p>I have a question about Editor Templates. For example I have a model with date field, product prize field and weight of product field. I have successfully created Editor Templates for DateTime and Decimal. I'm given to understand that when I use EditorFor for any field it takes template depending on a data type of the field. </p>
  
  <p>So when I use: <code>EditorFor(m=&gt;m.DateOfBirth)</code> which is DateTime format it looks for DateTime template in EditorTemplates folder and <code>EditorFor(m=&gt;m.ProductPrice)</code> which is double it looks for Double template, etc.)</p>
  
  <p>Question is how can I differ that I want to use one Decimal template with string format <code>##0.00</code> for (double)ProductPrize and another template with format <code>##0.0000</code> for (double)ProductWeight?</p>
  
  <p>Any help would be appreciated </p>