Functional Description
Purpose
This function calculates the employee's age as of a specified date. This does not calculate fraction
of years, only whole years are returned.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Determine the number of years between the employee's birth year and the year to calculate age as of.
Determine if the birthday has passed as of the date to calculate as of. If the birthday has passed,
return the difference in years. If the birthday has not passed, return the difference minus 1.
D0800130 - Calculate Employee Age As Of A Date
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
jdAsOfDate | DATE01 | JDEDATE | OPT | BOTH |
Calculate the date as of this date. If this is left blank, the system date will be used.
| ||||
jdDateBirth | DOB | JDEDATE | REQ | INPUT |
The employee's date of birth. | ||||
mnAge | FAGE | MATH_NUMERIC | OPT | OUTPUT |
Returns the age of the employee as of the date passed in (or the system date).
| ||||
cErrorCode | ERRC | char | OPT | OUTPUT |
Error Codes are as follows:
|
None |
None |