<nz-date-picker
class="date-picker-tile"
name="EndTime"
[(ngModel)]="editInfo.EndTime"
nzFormat="yyyy-MM-dd HH:mm"
[nzDisabledDate]="disabledEndDate"
[nzDisabledTime]="disabledDateTime"
[nzShowTime]="{nzMinuteStep:15,nzFormat: 'HH:mm' }"
(ngModelChange)="onEndChange($event)"
></nz-date-picker>
//禁用日期
disabledEndDate = (current: Date): boolean => {
return differenceInCalendarDays(current, this.editInfo.StartTime) < 0;
};
//禁用时间
disabledDateTime: any = () => {