title: Argument of type Moment is not assignable to parameter of type Date
body: <pre><code>import { Moment } from 'moment';
  import * as moment from 'moment/moment';
  
  export class JobExecution {
    public startTime: Moment;
  
  
    constructor() {
      this.stepExecutions = [];
    }
  
    public get startTimeFormatted(): string {
      return DateTimeUtils.formatAsDateTime(this.startTime);
    }
  </code></pre>
  
  <p><strong>It shows an error saying.</strong></p>
  
  <blockquote>
    <p>Argument of type 'Moment' is not assignable to parameter of type
    'Date'.</p>
    
    <p>Property 'toDateString' is missing in type 'Moment'.</p>
  </blockquote>
  
  <pre><code>return DateTimeUtils.formatAsDateTime(this.startTime)
  </code></pre>
  
  <p>This code is wrong</p>
  
  <p><a href="https://i.stack.imgur.com/eGUeN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eGUeN.png" alt="1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7IEUa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7IEUa.png" alt="2"></a></p>