How to set default format date with angular ui bootstrap
问题 I use ui.boostrap for a datepicker, http://plnkr.co/edit/GfOQmgW85U2aW3YbZO7T?p=preview I need to format the date like "yyyy/MM/dd" because that's how my RESTapi receives the args. Applying $filter in angular. http://docs.angularjs.org/api/ng.filter:date It seems that the problem was solved, however when I change the date in the datepicker, the format date changes to a format like 2014-01-30T00:58:43.000Z how can I set default format date with this tool? 回答1: Since the date is a JS Date