title: How to Setup DateTime.ascx(Nerdinner Editor Templates) in mvc page?
body: <p>I Add DateTime Datetime.ascx </p>
  
  <p>\Views\Shared\EditorTemplates\</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;System.DateTime&gt;" %&gt;
       &lt;%= Html.TextBox("", String.Format("{0:yyyy-MM-dd HH:mm}",Model)) %&gt;
           &lt;script type="text/javascript"&gt;
               $(function () {
                   $('#EventDate').datetime({
                       userLang: 'en',
                       americanMode: true
                   });
               });
              &lt;/script&gt;
  </code></pre>
  
  <p>And I Need to Use it in my DateFrom - To Texbox.</p>
  
  <pre><code>&lt;%@ Register src="../Shared/EditorTemplates/DateTime.ascx" tagname="DateTime" tagprefix="uc1" %&gt;
  &lt;p&gt;
          Please enter your Date Range Below.
      &lt;/p&gt;
             &lt;p&gt;
      Please enter your Date Range Below.
  &lt;/p&gt;
      &lt;form method="post" action="&lt;%= Html.AttributeEncode(Url.Action("List")) %&gt;"&gt;
      &lt;div&gt;
          &lt;table cellpadding="2" cellspacing="0" class="vertical"&gt;
              &lt;tr&gt;
                  &lt;th&gt;Date From:&lt;/th&gt;
                  &lt;td&gt;&lt;%= Html.TextBox("datefrom") %&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;th&gt;Date To:&lt;/th&gt;
                  &lt;td&gt;&lt;%= Html.TextBox("dateto")%&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;th&gt;&lt;/th&gt;
                  &lt;td&gt;&lt;input type="submit" value="Show My Orders" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I got the Datetime.ascx from Nerdinner</p>
  
  <p>Thanks in Regards</p>