HcmWorker::getMaxEmploymentEndDate Method
Retrieves the maximum ValidTo value for the active employments that are associated with an HcmWorker object.
Syntax
client server public static HcmEmploymentValidTo getMaxEmploymentEndDate(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker object for which the ValidTo value is returned.
- _asOfDate
Type: utcdatetime
The point in time to use for the selection criteria.
Return Value
Type: HcmEmploymentValidTo Extended Data Type
The maximum ValidTo value to associate with an active employment for the worker.