Min last {{ title }} time {{ formGroup.controls.minTime.getError('invalidDateTime') }} Max last {{ title }} time {{ formGroup.controls.maxTime.getError('invalidDateTime') }} Either one or both times have to be set. Min timestamp has to be strictly before the max timestamp.