I've added jquery's datetimepicker in my html form, when I'm clicking on input box it opens datetimepicker calender and populate input box with current date and time, which is fine. But if I'm selecting any future date, the timebar's hour and minutes is still remain to current time i.e I'm not able to select any time less than current time in case of future date selection, more importantly this problem does not occur regularly and some time it is working fine(i'm also using angularjs), below is the code i'm using
<input ng-show="sentMsgStatus" id="datepickerEnd" name="endDateTime"
readonly="readonly" value="{{msgEndDate | date:'dd/MM/yyyy H:mm'}}"
ng-model="msgEndDate"/>
$("#datepickerEnd").datetimepicker({dateFormat: "dd/mm/yy",timeFormat: 'hh:mm',
minDate: new Date()});