title: how to convert value of an input tag (type='month') to string like"yyyy-MM"
body: <p>convert value of input (type month) to format "yyyy-MM"</p>
  
  <p>html</p>
  
  <pre><code>&lt;input class="bg-success btn btn-dark" type="month" 
      id="timeCheckTimeSheets" ng-model="month"&gt;
  </code></pre>
  
  <p>angularjs</p>
  
  <pre><code> $http({
      url: url + $scope.page,
      method: "GET",
      headers: {
        Authorization: token
      }
    }).then(function(response) {
      $scope.projects = response.data.content;
      var totalPages = response.data.totalPages;
      console.log($scope.month);
    }, function(response) {
      alert('fail')
    })
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YLyAW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YLyAW.png" alt="enter image description here"></a></p>