We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca1b7f commit 3cade4bCopy full SHA for 3cade4b
src/input-birthday.component.js
@@ -30,13 +30,6 @@ class BirthdayInputComponent {
30
this.year = year;
31
this.month = String(this.ngModel.month());
32
this.day = parseInt(this.ngModel.format('DD'), 0);
33
-
34
- const birthdayDate = moment(`${this.year}-${this.month}-${this.day}`, 'YYYY-MM-DD');
35
- if (this.returnFormat) {
36
- this.ngModel = birthdayDate.format(this.returnFormat);
37
- } else {
38
- this.ngModel = this.returnType === 'moment' ? birthdayDate : birthdayDate.toDate();
39
- }
40
}
41
42
0 commit comments