0
我有一个元素<input type="date" ng-model="mydate" custom-date />
,我不能修改。angularJs指令格式日期
现在的日期格式为'yyyy-MM-dd HH:mm:ss Z'
我需要将日期格式设置为'yyyy-MM-dd'
。我该如何编写一个指令来用指令“custom-date”来格式化应用程序中的所有元素?
ASLO我知道有角日期过滤器https://docs.angularjs.org/api/ng/filter/date,但我不想使用它