displaying the hour and minute with mobiscroll

140 Views Asked by At

Is there a way to display the hour and minute with mobiscroll? I can show the year/month/day,but i don't know how to display the hour and minute,here's my code

$scope.endDate = {
  preset: 'datetime',
  theme: 'mobiscroll',
  display: 'bottom',      
  minDate: new Date(today.getFullYear(), today.getMonth(), today.getDate()),       
  setText: '确定',
  cancelText: '取消',
  //amText: '上午',
  //[enter image description here][1]pmText: '下午',
  dateFormat: 'yyyy-mm-dd',  
  timeFormat:'HH:ii:ss',
  dateOrder: 'yymmddDD',
  timeOrder:'HHiiss',
  lang: 'zh',     
  dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],      
  headerText: '{value}',
  buttons: [
    'set',
    'cancel'
  ],
  onSelect: function (valueText, inst) {
    $scope.examForm.examTime = valueText;
    $scope.$apply();
    }
};
<input ng-model="endTime" mobiscroll-date="endDate" type="text" mobiscroll-instance="endDate" name="endDate" readonly ng-value="releaseForm.endTime"  class="datapicker"/>

0

There are 0 best solutions below