Simple angular directive to format and validate date and time inputs