Angular directive to validate content of html text input against formats with moment.js