Angular bootstrap datepicker date format does not format ng-model value

后端 未结 13 1352
借酒劲吻你
借酒劲吻你 2020-12-01 04:24

I am using bootstrap date-picker in my angular application. However when I select a date from that date-picker underlying ng-model that I have bind gets updated I want that

13条回答
  •  粉色の甜心
    2020-12-01 04:48

    Finally I got work around to the above problem. angular-strap has exactly the same feature that I am expecting. Just by applying date-format="MM/dd/yyyy" date-type="string" I got my expected behavior of updating ng-model in given format.


    {{selectedDate}}

    here is working plunk link

提交回复
热议问题