[ADF-1516] added parsing on date check (#2301)

This commit is contained in:
Vito
2017-09-06 02:18:35 -07:00
committed by Eugenio Romano
parent df5d264aa9
commit 9734e5f226

View File

@@ -115,7 +115,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
parse(value: any, parseFormat: any): Moment {
let m = moment(value, parseFormat, true);
if (!m.isValid()) {
m = moment(value);
m = moment(value, this.overrideDisplyaFormat);
}
if (m.isValid()) {
// if user omits year, it defaults to 2001, so check for that issue.