<md-input-container ng-class="{ 'md-input-invalid' : form[field.name].$invalid && form[field.name].$touched }" ng-show="field.show">
  <label>{{field.title}}</label>
  <md-datepicker 
    name="{{field.name}}"
    ng-model="field.value"
    ng-required="field.settings.required && !form.saveAsDraft.$modelValue && field.show"
    ng-disabled="field.settings.disabled || globals.viewModeOnly"></md-datepicker>
    
  <div ng-messages="form[field.name].$error" ng-show="form[field.name].$invalid && form[field.name].$touched">
    <div ng-message="required">This field is required</div>
    <div ng-message="format">Invalid format</div>
  </div>
</md-input-container>
<md-input-container ng-class="{ 'md-input-invalid' : form[field.name].$invalid && form[field.name].$touched }" ng-show="field.show">
  <label>{{field.title}}</label>
  <md-datepicker 
    name="{{field.name}}"
    ng-model="field.value"
    ng-required="field.settings.required && !form.saveAsDraft.$modelValue && field.show"
    ng-disabled="field.settings.disabled || globals.viewModeOnly"
    md-min-date="field.settings.minDate" md-max-date="field.settings.maxDate"></md-datepicker>
    
  <div ng-messages="form[field.name].$error" ng-show="form[field.name].$invalid && form[field.name].$touched">
    <div ng-message="required">This field is required</div>
    <div ng-message="format">Invalid format</div>
  </div>
</md-input-container>

Add min and max date attribute to date picker
Add min and max date attribute to date picker

Allow min and max date validation to be done by providing the minDate
and maxDate settings to a field.
