使用http://trentrichardson.com/examples/timepicker/如果我paastetoodeAlgusAeg.datepicker('getDate')
那么我得到了正确的日期,但时间总是00.00.00。我该如何解决这个问题?
<div class="vkTimePickerInputKontainer">
<input id="paastetoodeAlgus"
name="paastetoodeAlgus"
class="vkTimePicker"
value="${g.formatDate(format: grailsApplication.config.grails.app.dateTimeFormat, date: valjakutseInstance?.paastetoodeAlgus)}"
/>
</div>
jQuery('.vkTimePicker').datetimepicker({
dateFormat: 'dd.mm.yy',
timeFormat: 'hh:mm:ss',
showSecond:true,
validateBeforeClose: VKREG.validateDateTimeChronology
});
EDIT1:
解决了它。问题来自于somone在格式类型中输入错误的事实。很难解决,因为代码非常分散。