title: How to inject datefilter in protractor?
body: <p>I am writing end to end test cases for my angular application. I need to check for dates that are in correct format. So I want to inject the 'datefilter', so that I can use it in protractor.</p>
  
  <p>When i 'googled' i found that i can use the browser.executeAsyncScript to get the injector and then use </p>
  
  <pre><code>angular.injector(["ng"]).get("dateFilter"); 
  </code></pre>
  
  <p>to get the datefilter.</p>
  
  <p>But i am still not able to put them all together in code. 
  Any heads-up would be enough to get me going with the code.</p>