// Some codeimport { DatePipe, formatDate } from '@angular/common';import * as moment from 'moment';solution 1: let today = new Date() this.TodayStr = (moment(today)).format('yyyy-MM-DD')+'T00:00'solution 2: this.TodayStr = formatDate(Date.now(),'yyyy-MM-ddThh:mm','en-AU');