change date picker

This commit is contained in:
Peter Maquiran
2023-02-06 13:52:08 +01:00
parent 2470e0abfc
commit 0bf43b629c
41 changed files with 65 additions and 120 deletions
@@ -165,6 +165,10 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.validateFrom = true
}
get dateValid() {
return new Date(this.postData.StartDate).getTime() < new Date(this.postData.EndDate).getTime() ? 'ok': null
}
injectValidation() {
this.Form = new FormGroup({
@@ -178,7 +182,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
CalendarName: new FormControl(this.postData.CalendarName, [
// Validators.required
]),
Date: new FormControl( (this.postData.StartDate < this.postData.EndDate), [
Date: new FormControl( (this.dateValid), [
Validators.required
]),
participantes: new FormControl(this.taskParticipants, [