title: Converting date using Angular JS filter fails
body: <p>I am using angular js filter to format a date on the controller. A user selects a date from a <code>uib-datepicker-popup</code>. It is this date that I want formatted using <code>ISO 8601</code> (yyyy-mm-dd) date format. I then log my the date picked by the user and get something like this </p>
  
  <p><code>Sat Aug 20 2016 00:00:00 GMT+0300 (EAT)</code></p>
  
  <p>However I then use angular $filter like this</p>
  
  <p><code>$filter('date')(new Date(vm.my_date), 'yyyy-mm-dd');</code></p>
  
  <p>and wind up with the date as </p>
  
  <p><code>2016-00-20</code></p>
  
  <p>Here is my the code on my controller</p>
  
  <pre><code>        // Logs Sat Aug 20 2016 00:00:00 GMT+0300 (EAT)
          console.log(vm.my_date);
  
          var converted = $filter('date')(new Date(vm.my_date), 'yyyy-mm-dd');
  
          // Logs 2016-00-20
          console.log(converted);
  </code></pre>
  
  <p>What am I doing wrong?</p>