[英]How to display 24 hour format in DateTimePicker?
I'm using the Datetimepicker library. 我正在使用Datetimepicker库。
This is my code, I have reviewed questions already raised but no solution works for me. 这是我的代码,我已经审查了已经提出的问题,但是没有解决方案适合我。
$('#datetimepicker').datetimepicker({
defaultDate: moment().add(1, 'd'), //defaultDate
minDate: (fecha.getTime() + 1 * 86400000), //minDate
disabledHours: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 21],
locale: "es", //language
format: 'Y/m/d A HH:mm', //format
inline: true, //alignement
sideBySide: true //visual Ubication
});
The recommendations say that I use format: HH: mm
, instead of using hh: mm
, but I use this and the change does not take effect. 建议说,我使用
format: HH: mm
,而不是使用hh: mm
,但是我使用了该更改,但该更改没有生效。
I had one more character in my code. 我的代码中还有一个字符。 format:
格式:
'Y / m / d A HH: mm' 'Y / m / d A HH:毫米'
to 至
format: 'Y / m / d HH: mm' 格式:“ Y / m / d高度:毫米”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.