0
我正在使用下面的庫。在DateTime picker控件中使用,但我無法設置最小和最大日期。如何設置最小和最大日期?
https://github.com/kineticsocial/angularjs-datetime-picker
下載地點:https://www.npmjs.com/package/angularjs-datetime-picker
查看文件代碼:
<input ng-model="eta" required id="eta" style="height:32px; border-bottom-width:thin;border-top-width:thin;border-left-width:thin;border-right-width:thin ;" datetime-picker min-date="minDate" date-format="MM/dd/yyyy HH:mm" close-on-select="true" readonly size="30" />
請諮詢我如何設置最小和最大的日期。
謝謝...
你可以試試這個:http://stackoverflow.com/questions/30200122/angular-ui-datepicker-max -date-doesnt-work-properly –
使用datepicker-options =「{minDate:yourScopeMinDate}」 –
其不工作 –