- selectedDate: Date;
- startTime: Date = new Date();
- endTime: Date = new Date();
- constructor(private logsService: LogsService) {
- this.startTime.setHours(0, 0);
- this.endTime.setHours(23, 59);
- }
+ selectedDate: NgbDateStruct;
+ startTime = { hour: 0, minute: 0 };
+ endTime = { hour: 23, minute: 59 };
+ maxDate = {
+ year: new Date().getFullYear(),
+ month: new Date().getMonth() + 1,
+ day: new Date().getDate()
+ };
+
+ constructor(
+ private logsService: LogsService,
+ private datePipe: DatePipe,
+ private ngZone: NgZone
+ ) {}