GetQuestionEffectiveDeadline
Function: getQuestionEffectiveDeadline()
[object Object]
Defined in: util/answer.util.ts:16
Determines the effective deadline until which a specification question can be answered or
changed: the activity's unenrollment deadline when the question's closeOnUnenrollmentDeadline
is set and an unenrollment deadline exists, otherwise the activity's enrollment deadline,
otherwise the activity's end date and time. Mirrors the backend's QuestionDeadlineHelper.
Parameters
question
GetSpecificationQuestionResponseDto
The specification question.
activity
The activity the question belongs to.
Returns
Date | null
The effective deadline, or null if none of the three dates is available.