getSurveyStatusFromSchedule

Function

Parses survey schedule start and end to determine if survey is currently open, closed, or upcoming

  • getSurveyStatusFromSchedule(__namedParameters: {
    end:
    string
    start:
    string
    }, now: Date) : ISurveyStatus

Parameters

Parameter Type Default Notes
__namedParameters Required {
end:
string
start:
string
}
now Optional Date new Date()

Date object

Returns

Property Type Notes

Function defined in surveys/src/utils/status-utils.ts:73