hi
i have DataTimePicker control in my form.
i want to show only hh:mm
how i can do it ?
thank's in advance
hi
i have DataTimePicker control in my form.
i want to show only hh:mm
how i can do it ?
thank's in advance
Use the customformat Property.... See the custom formats in msdn DateTime.ToString() overloads
$('selector').datepicker({dateFormat: 'yy-mm-dd hh:nn'});
as shown in the datepicker documentation. (There are also ways to pre-define default settings, so you don't have to do that every time. See the documentation for details.)
Set the Format
property to Custom
.
Set the CustomFormat
property to HH:mm
for 24-hour time or hh:mm
for 12-hour time.
See CustomFormat for reference.