Home how to make simple datimepicker in ASP.net VB
Reply: 1

how to make simple datimepicker in ASP.net VB

Indra suandi
1#
Indra suandi Published in 2018-01-13 04:45:20Z

I have simple question is that, how to make Datetime picker in Asp.net VB?

Im new in ASP.net need your help

marc_s
2#
marc_s Reply to 2018-01-14 08:41:50Z

Use input field with type="date"

Plain HTML

<input id="date" type="date">

For ASP.NET control:

 <asp:TextBox runat="server" type="date" />

ref for more options https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

Using jQuery UI plugin:

You should check out the jQuery UI DatePicker.

ASP.NET Example

<script>
$(function() {
    $( "#<%= txtDate.ClientID %>" ).datepicker();
});
</script>

<form id="form1" runat="server">
  <div>
    <asp:TextBox ID="txtDate" runat="server" />
  </div>
</form>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.319368 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO