This commit is contained in:
Peter Maquiran
2021-07-16 23:16:55 +01:00
parent fe0485fb0d
commit 2cb0d9fda7
3 changed files with 27 additions and 30 deletions
@@ -251,7 +251,7 @@ export class NewEventPage implements OnInit {
participantes: new FormControl(this.taskParticipants, [
Validators.required
]),
Date: new FormControl(this.postEvent.StartDate.toLocaleString() < this.postEvent.EndDate.toLocaleString() ? 'ok': null,[
Date: new FormControl(this.postEvent.StartDate.getTime() < this.postEvent.EndDate.getTime() ? 'ok': null,[
Validators.required
]),