title: Momentjs with Typescript : "type string is not assignable to type 'Date'"
body: <p>Till now I was using momentjs library like this:</p>
  
  <pre><code>import * as moment from 'moment'; // import moment.
  @Component({..});
  export class TestClass {
    lastUpdated = Date
    constructor(private myService: MyService){
      this.lastUpdated = this.getCurrentTime(); **// this shows error.. that type string is not assignable to type 'Date'**
    }
   var getCurrentTime(){
      return moment().format('DD MMM YYYY HH:mm:ss'); 
   }
  }
  </code></pre>
  
  <p>Above code shows me this error: that type string is not assignable to type 'Date'**</p>
  
  <p>But same code exactly working fine when I use this line in place of the import module, evenn other resturent os</p>
  
  <blockquote>
    <p>declare var moment: any;</p>
  </blockquote>
  
  <p>But I canot use above statement as it is using "var": and 'any' 
  is not suggested by Lint.</p>
  
  <p>Why getCurrentTime is returning String? Should not this return Date</p>