title: how to get hh:mm:ss in angularjs-datepicker
body: <p>hi i am using angularjs datepicker functionality using <code>npm i angularjs-datepicker</code> working fine but i need to show time like(15-12-2017 05:14 PM) help how to format the datepicker here i mentioned reference link also i tired from controller it's came but when i click date picker date shown wrongly .there is any specify format is there help or how to solve that problem</p>
  
  <p><a href="https://www.npmjs.com/package/angularjs-datepicker" rel="nofollow noreferrer">https://www.npmjs.com/package/angularjs-datepicker</a></p>
  
  <p>html</p>
  
  <pre><code>&lt;div class="hackyhack" datepicker datepicker-class="test-custom-class" 
     date-format="dd-MM-y" &gt;
   &lt;input type="text" id="AddQuoteDate" name="QuoteDate" size="4"
   ng-model="QuoteDate" placeholder="Enter Quote Date"
   ng-change="QuoteDatechange(QuoteDate)"
   class="form-control angular-datepicker-input"
   required title="Enter Quote Date"/&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>  $scope.QuoteDatechange = function (Quotedate) {
   var date = new Date();
              var hours = date.getHours() &gt; 12 ? date.getHours() - 12 : date.getHours();
              var am_pm = date.getHours() &gt;= 12 ? "PM" : "AM";
              hours = hours &lt; 10 ? "0" + hours : hours;
              var minutes = date.getMinutes() &lt; 10 ? "0" + date.getMinutes() : date.getMinutes();
              var seconds = date.getSeconds() &lt; 10 ? "0" + date.getSeconds() : date.getSeconds();
                time = hours + ":" + minutes + ":" + seconds + " " + am_pm;
              $scope.QuoteDate = Quotedate + " " + time;
              }
  </code></pre>