title: Datetime formatting with editor template MVC
body: <p>I want to format the DateTime displayed in TextBoxes without the time and to this format: 01 Jan, 2011 instead of the default 01/01/2011 for both display and edit scenarios.</p>
  
  <p>I am already using the following template for DateTime in order to use datepicker. Can I somehow include formatting here?</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;System.DateTime?&gt;" %&gt;
  &lt;%: Html.TextBox("",ViewData.TemplateInfo.FormattedModelValue, new { @class = "text-box single-line" }) %&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>