title: DateTime calender in asp.net
body: <p>The date time displays as 07/10/2011 01:29:20 I want to display only 07/10/2011 01:29 how can I do that.</p>
  
  <pre><code>     DateTime now = DateTime.Now.AddHours(12);
          txt_ExpiresBy.Text = Convert.ToString(now);
  </code></pre>
  
  <p>And I have this datetime calendar which I assign it to a text box, I have to assign this calendar to 3 text box, How can I do it. Should I use three Javascript with different name or can I do with this below?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
          $(function () {
              $('.datePicker').datetimepicker();
          });
      &lt;/script&gt;
  
  &lt;asp:TextBox ID="forDatePicker" runat="server" /&gt;
  </code></pre>