title: MVC4 Date Picker with Default Date
body: <p>I am using MVC4 with the Razor view engine. My controller is as follows:</p>
  
  <pre><code>public ActionResult Index()
  {
  
      return View(new EmployeeIndexViewModel
      {
  
          ToDate = DateTime.Now
  
      });
  
  }
  </code></pre>
  
  <p>My View Model is as follows:</p>
  
  <pre><code>public class EmployeeIndexViewModel
  {
      [DataType(DataType.Date)]
      public DateTime ToDate { get; set; }
  }
  </code></pre>
  
  <p>On my view I have a simple <code>EditorFor()</code> call:</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.ToDate)
  </code></pre>
  
  <p>But still get a default (masked) value in my date picker:</p>
  
  <p><img src="https://i.stack.imgur.com/Tf8Cv.png" alt="Empty Date Picker"></p>
  
  <p><strong>QUESTION:</strong></p>
  
  <p>How can I get today's date (from controller) to display here instead?</p>