You can try to do something like this with a custom function to invoke it. Invoke your custom function on an event like ng-change
have your validation rules in the function and bind a respective user friendly validation message. Let us know if its suffice.
$scope.isValidDate = function(startDate,endDate) {
$scope.errorMessage = ‘’;
var curDate = new Date();
if(new Date(startDate) > new Date(endDate)){
$scope.errorMessage = 'End Date should be greater than start date';
return false;
}
if(new Date(startDate) < curDate){
$scope.errorMessage = 'Start date should not be before today.';
return false;
}
};
Start Date:
End Date:
{{errorMessage}}
#BPM#webMethods#webMethods-BPMS