is there any way to show validation error message or border become red when user enter invalid date format?.In my demo app there two input field in which I am showing date like this "16-jun-1989" .Now user edit this field only in this format (that is valide) if user enter invalid format I want to show error message on button click or border become red on button click here is my code http://plnkr.co/edit/xoTH3uJZSVx0W78rwhMt?p=preview
var app = angular.module('plunker', ['angularMoment']);
app.controller('MainCtrl', function($scope ,moment) {
$scope.name = 'World';
console.log(moment)
var d = new Date(613938600000);
$scope.c = {
ab: {
name:'abc'
},
date: {
name: moment(d).format('DD-MMM-YYYY')
}
};
$scope.onclick =function(){
console.log($scope.c)
}
});