title: AngularJS ng-model-options getter-setter
body: <p>I've just upgrade to angular version 1.3.8. </p>
  
  <p>When using 1.2.23 version I've created a directive to convert the data form view to model and vice verse.</p>
  
  <p>This is my directive:</p>
  
  <pre><code>.directive('dateConverter', ['$filter', function ($filter) {
  
      return {
  
          require: 'ngModel',
  
          link: function (scope, element, attrs, ngModelController) {
  
              // Convert from view to model
              ngModelController.$parsers.push(function (value) {
                  return $filter('date')(new Date(date), 'yyyy-MM-ddTHH:mm:ss')
              });
  
              // Convert from model to view
              ngModelController.$formatters.push(function (datetime) {
                  return $filter('date')(datetime, 'MM/dd/yyyy');
              });
          }
      };
  }]);
  </code></pre>
  
  <p>});</p>
  
  <p>I see <a href="https://code.angularjs.org/1.3.8/docs/api/ng/directive/ngModelOptions" rel="noreferrer">here</a> that getters and setters in binding are now supported, but I cannot find anywhere how to use <strong>both</strong> getters <strong>and</strong> setters. Is there any way to do it? That is - can ng-model-options replace my convert directive?</p>
  
  <p>Thanks</p>