在html页面上显示时,我得到了这个错误,我将日期作为一个array.If返回,我希望在将来只显示月份和年份,那么应该做什么呢?现在我想返回整个日期,所以在ngmodel中的p-日历标记中的html页出现了错误,我在ngmodel中显示date2i,其中我是来自p-datalist的索引,我在html页面上得到了错误。, Validators } from '@angular/forms'
我希望它限制在7天内的差异。我不想让用户选择2天的差异是7天以上的日期。所以在日历中:it looks something like this 如您所见,10月5日是开始日期,它允许我们选择10月17日作为结束日期。但我希望用户被限制在10月5日到10月12日(最多7天差异)范围内选择结束日期。 有什么办法吗?/core';
import { FormControl, FormGroup } from '