search

Home  >  Q&A  >  body text

angular.js - How to get the yyyy-MM-dd value in angular-ui Datepicker

    **Friday, August 14, 2009
        取出来的是这种时间 想要yyyy-MM-dd的 要配什么参数**
给我你的怀抱给我你的怀抱2824 days ago542

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-15 17:03:03

    Update the question I asked before.

    in html

    <p ng-bind="变量 | date : 'yyyy-MM-dd'"></p>
    

    in js

    $filter('date')(变量,'yyyy-MM-dd'); 

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-15 17:03:03

    Filter, just format it. Besides, doesn’t the official website have sample code? . .

    reply
    0
  • Cancelreply