Cannot read property 'match' of undefined
at Function.Ng2Datetime.removeTimezone (ng2-datetime.ts:156)
at Function.Ng2Datetime.parse (ng2-datetime.ts:147)
at Ng2DatetimePickerDirective.normalizeInput (ng2-datetime-picker.directive.ts:88)
at Ng2DatetimePickerDirective.ngOnInit (ng2-datetime-picker.directive.ts:136)
Just went through the code. In below code you are refering to this.minDate which i think should be this.maxDate.
In ng2-datetime-picker.directive.ts:88
if (this.maxDate && typeof this.maxDate == 'string') {
let d = Ng2Datetime.parseDate(this.minDate);
this.maxDate = Number.isNaN(d.getTime()) ? new Date() : d;
}
Getting exception :
Cannot read property 'match' of undefined at Function.Ng2Datetime.removeTimezone (ng2-datetime.ts:156) at Function.Ng2Datetime.parse (ng2-datetime.ts:147) at Ng2DatetimePickerDirective.normalizeInput (ng2-datetime-picker.directive.ts:88) at Ng2DatetimePickerDirective.ngOnInit (ng2-datetime-picker.directive.ts:136)
Just went through the code. In below code you are refering to this.minDate which i think should be this.maxDate.
In ng2-datetime-picker.directive.ts:88
if (this.maxDate && typeof this.maxDate == 'string') { let d = Ng2Datetime.parseDate(this.minDate);
this.maxDate = Number.isNaN(d.getTime()) ? new Date() : d;
}