title: Cannot Instantiate DatePipe
body: <p>I am trying to instantiate a <code>DatePipe</code> object in my Angular2 app to use <code>transform(...)</code> function in a component I'm developing.</p>
  
  <pre><code>// ...
  import { DatePipe } from '@angular/common';
  
  @Component({...})
  export class PanelComponent implements OnInit {
      // ...
      datePipe: DatePipe = new DatePipe(); // Error thrown here
      // ...
  }
  </code></pre>
  
  <p>This code segment worked fine in RC5. Now I am trying to upgrade to Angular2 final release and getting this error when I run <code>ng serve</code> or <code>ng build</code>,</p>
  
  <pre><code>~/tmp/broccoli_type_script_compiler-input_base_path-XitPWaey.tmp/0/src/app/panel/panel.component.ts (33, 24): 
  Supplied parameters do not match any signature of call target.
  </code></pre>
  
  <p>How can I resolve this issue? Is there another way of instantiating a Pipe? Or has Angular stopped supporting instantiating of Pipes inside components?</p>