title: NGX Bootstrap Timepicker Set Value Programmatically
body: <p>I am using <a href="https://valor-software.com/ngx-bootstrap/#/timepicker" rel="nofollow noreferrer">NGX-Bootstrap Timepicker</a>. I want to be able to set the time values programatically.</p>
  
  <p>If I have something like:</p>
  
  <pre><code>&lt;timepicker [(ngModel)]="mytime"&gt;&lt;/timepicker&gt;
  </code></pre>
  
  <p>and try to set the time values with something like:</p>
  
  <pre><code>mytime: Date = new Date();
  this.mytime.setHours(0);
  this.mytime.setMinutes(0);
  </code></pre>
  
  <p>it does not work. Does anybody have any other suggestions? <a href="https://stackblitz.com/edit/angular-vx6far" rel="nofollow noreferrer">Stackblitz</a></p>