I\'m working on an Angular App with Material Design, and I\'m using Moment.js to parse and format dates.
In one of my p
update: @Gil Epshtain's solution doesn't work if the user wants to manually input DateTime instead of pick DateTime from DateTime picker (remove read-only attribute on input DateTime).
my update on customDateAdapter.ts
:
public parse(value: any, parseFormat: string | string[]): moment.Moment | null {
if(!value) {
return null
}
const format = this._dateTimeService.getFormat();
return _moment(value, format, false);
}