|
|
|
@ -41,7 +41,6 @@ export class RegisterComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.minDateTimeTest = new Date('1917-01-01');
|
|
|
|
|
this.maxDateTimeTest = new Date('2117-01-01');
|
|
|
|
|
this.parrainDateTimeTest = new Date(this.parrain.birthday);
|
|
|
|
|
//console.log(this.validationBirthdayParrain());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -118,8 +117,6 @@ export class RegisterComponent implements OnInit, OnDestroy {
|
|
|
|
|
validationBirthdayParrain(){
|
|
|
|
|
let dateTempB = new Date(Date.now());
|
|
|
|
|
this.parrainDateTimeTest = new Date(this.parrain.birthday);
|
|
|
|
|
console.log(dateTempB.getFullYear());
|
|
|
|
|
console.log(this.parrainDateTimeTest.getFullYear());
|
|
|
|
|
|
|
|
|
|
if (this.parrainDateTimeTest.getFullYear() > this.minDateTimeTest.getFullYear()
|
|
|
|
|
&& (this.parrainDateTimeTest.getFullYear() !== dateTempB.getFullYear())
|
|
|
|
|