Function that creates a end date attribute

endDate(op)

Arguments

op

an opAttribute object must be a date that defines the logical operation used to determine eligible end dates

Value

An attribute that can be used in a cohort definition