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

后端 未结 13 1345
借酒劲吻你
借酒劲吻你 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:39

    I can fix this by adding below code in my JSP file. Now both model and UI values are same.

    {{dt = (dt | date:'dd-MMMM-yyyy') }}

提交回复
热议问题