diff --git a/src/components/form/date-input/date-input.component.ts b/src/components/form/date-input/date-input.component.ts index de8a93c670..db45d317fe 100644 --- a/src/components/form/date-input/date-input.component.ts +++ b/src/components/form/date-input/date-input.component.ts @@ -45,7 +45,7 @@ export class DateInputComponent implements ControlValueAccessor, Validator, OnDe if (obj) { this.rawValue = obj.replace(/T.*/, ''); - // needs to handle also partial dates, e.g. -05-2016 (missing year) + // needs to handle also partial dates, e.g. -05-2016 (missing day) const values = this.rawValue.split('-'); this.year = this.displayYear = values[0] || ''; this.month = this.displayMonth = values[1] || '';