We use bootstrap-datetimepicker by Eonasdan. This plugin requires moment.js.
There are four modes with the Date / Time picker.
<div class="input-group" data-datetime="date">
<asp:TextBox ID="txtID" runat="server" CssClass="form-control" readonly data-disable-touch-keyboard></asp:TextBox>
<span class="input-group-addon primary">
<i class="fa fa-calendar"></i>
</span>
</div>
<div class="input-group" data-datetime="time">
<asp:TextBox ID="txtID" runat="server" CssClass="form-control" readonly data-disable-touch-keyboard></asp:TextBox>
<span class="input-group-addon primary">
<i class="fa fa-clock-o"></i>
</span>
</div>
<div class="input-group" data-datetime="both">
<asp:TextBox ID="txtID" runat="server" CssClass="form-control" readonly data-disable-touch-keyboard></asp:TextBox>
<span class="input-group-addon primary">
<i class="fa fa-calendar"></i>
</span>
</div>
<div class="input-group" data-datetime="both-side">
<asp:TextBox ID="txtID" runat="server" CssClass="form-control" readonly data-disable-touch-keyboard></asp:TextBox>
<span class="input-group-addon primary">
<i class="fa fa-calendar"></i>
</span>
</div>
To allow the user to enter the date or time via typing, add the following JavaScript to your page.
// allow keyboard to be used on click
$('[data-disable-touch-keyboard]').on('click', function (e) {
$(this).prop("readonly", false);
$(this).focus();
});
// make readonly to make sure virtual keyboard doesn't show
$('[data-disable-touch-keyboard]').on('blur', function (e) {
$(this).prop("readonly", true);
});