In my mvc application, I need a datetimepicker. I got a code for this from Here.
So first i refer these js and css files.
<script src="~/Scripts/jquery-1.9.0.min.js"></script>
<script src="~/Scripts/jquery-ui.min.js"></script>
<script src="~/Scripts/jquery-ui-timepicker-addon.js"></script>
<link href="~/Content/jquery-ui-timepicker-addon.css" rel="stylesheet" />
Then,
<div>
@Html.TextBox("fromdate", DateTime.Now.ToString("MM/dd/yyyy HH:mm"), new { @class = "from-date-picker", @readonly = "readonly" })
</div>
and in the script,
$('.from-date-picker').datetimepicker({
dateFormat: 'mm/dd/yy',
timeFormat: 'hh:mm',
timeInput: true,
stepHour: 1,
stepMinute: 5
});
So I got a datetime picker like this.
But here time is selecting by using a slider. I am trying to make it like the following type.
So tried like this.
$('.from-date-picker').datetimepicker({
controlType: 'select',
oneLine: true,
timeFormat: 'hh:mm tt'
});
But still its coming like the old style. That is with slider. How can I change to the second type?



cssfiles for this kind of layout?