format : StringDefault: 'HH:MM mm/dd/yyyy'

Specifies the format, which is used to format the value of the DatePicker displayed in the input.

M - Minutes; no leading zero for single-digit minutes.
MM - Minutes; leading zero for single-digit minutes.
H - The hour, using a 24-hour clock from 0 to 23; no leading zero for single-digit hours.
HH - The hour, using a 24-hour clock from 0 to 23; leading zero for single-digit hours.
h - The hour, using a 12-hour clock from 1 to 12; no leading zero for single-digit hours.
hh - The hour, using a 12-hour clock from 1 to 12; leading zero for single-digit hours
tt - The AM/PM designator; lowercase.
TT - The AM/PM designator; upercase.
d - Day of the month as digits; no leading zero for single-digit days.
dd - Day of the month as digits; leading zero for single-digit days.
ddd - Day of the week as a three-letter abbreviation.
dddd - Day of the week as its full name.
m - Month as digits; no leading zero for single-digit months.
mm - Month as digits; leading zero for single-digit months.
mmm - Month as a three-letter abbreviation.
mmmm - Month as its full name.
yy - Year as last two digits; leading zero for years less than 10.
yyyy - Year represented by four digits.

Examples

Sample

    
 <input id="input" value="05:50 2018-27-03" width="312" />
 <script>
     $('#input').datetimepicker({ format: 'HH:MM yyyy-dd-mm' });
 </script>

  

Long Month Format

    
 <input id="input" value="10 October 2017 05:50" width="312" />
 <script>
     $('#input').datetimepicker({ format: 'dd mmmm yyyy HH:MM' });
 </script>