title: How to turn the EditorFor into DATETIME picker?
body: <p>I want my EditorFor fields for DateFrom and DateTo to become a datetime picker (not datepicker). I successfully created it once but I lost my file. I couldn't remember if I used EditorFor or TextBoxFor for that.</p>
  
  <p>Also, how can I make the full name editorfor to be read only? I tried a link from stackoverflow but the field was still editable.</p>
  
  <pre><code>@using (Html.BeginForm()) {
      @Html.ValidationSummary(true)
  
      &lt;fieldset&gt;
          &lt;legend&gt;Approval&lt;/legend&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.FullName)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.FullName)
              @Html.ValidationMessageFor(model =&gt; model.FullName)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.DateFrom)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.DateFrom, new { @class="date", type = "datetime-local"})
              @Html.ValidationMessageFor(model =&gt; model.DateFrom)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.DateTo)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.DateTo, new { @class="datepicker", type = "datetime-local"})
              @Html.ValidationMessageFor(model =&gt; model.DateTo)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Description)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Description)
              @Html.ValidationMessageFor(model =&gt; model.Description)
          &lt;/div&gt;
  
  
          &lt;p&gt;
              &lt;input type="submit" value="Create" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  }
  
  @section Scripts {
      @Scripts.Render("~/bundles/jqueryval")
  }
  </code></pre>