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); } It shows an error saying. Argument of type 'Moment' is not assignable to parameter of type 'Date'. Property 'toDateString' is missing in type 'Moment'. return DateTimeUtils.formatAsDateTime(this.startTime) This code is wrong Continue reading...