I have an input with type text, that I'm using to set dates:
<input ng-model="model.JoinDate"
ui-mask="{{'99/99/9999'}}"
type="text" required
ng-class="{error: form.JoinDate.$dirty && form.JoinDate.$invalid}" />
The problem is that the user can type something like 00/00/0000. How can I validate the date, without creating a new directive?