【发布时间】:2020-09-06 16:31:36
【问题描述】:
我正在为我的 Angular js 项目使用引导日期选择器。
下面是 HTML
我的日期选择器文档如下 date picker documentation
<input type="text" placeholder="From Date" id="fromDate"
ng-required="newcashbenifit.isFixedAmount == false"
ng-disabled="newcashbenifit.isFixedAmount == true"
class="form-control" name="from" autocomplete="off"
ng-model="newcashbenifit.fromDate" autoclose="false"
data-date-format="dd/MM/yyyy" bs-datepicker />
日期选择器正在加载并且运行良好。但我需要修改它以仅显示月份和年份。 (删除日期)。我是怎么做的。
【问题讨论】:
标签: javascript angularjs twitter-bootstrap