title: How to add year/months/day to a current date using angularJS
body: <p>I am new to angularJS and now i would like to how to add the year from current date.</p>
  
  <p>Let's say i can get the user DOB and i want to add the year+1.</p>
  
  <p>I have tried by using,</p>
  
  <pre><code>   $scope.userdob = $rootScope.user.dob;
     $scope.userdob.add(1,'years');
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p>Can anyone help me to know about this logic with example ?</p>
  
  <p>TIA..,</p>