title: Create datetime picker in asp.net
body: <p>i'm trying to create date picker like this in asp.net, but its throwing me error. I'm using MVC architecture to create.</p>
  
  <p>Here is the code i'm using.  i'm getting error as: </p>
  
  <blockquote>
    <p>Microsoft JScript runtime error: Object doesn't support this property
    or method</p>
  </blockquote>
  
  <p>I need date to be selected and sit in the edittext. </p>
  
  <pre><code>  &lt;tr&gt;
      &lt;td style="width: 450px" class="" height="40px"&gt;
                              &lt;%= Html.TextBox(ViewControlNames.DateTime, "", new { maxlength = "40", id = ViewControlNames.DateTime, Class = "LongInputField" })%&gt;
                      &lt;/td&gt;
      &lt;/tr&gt;
  
           &lt;script&gt;
               $(function () {
                   $("#CabDateTime").datepicker();
               });
          &lt;/script&gt;
  
      &lt;/asp:Content&gt;
  </code></pre>