Date Difference
Security:
Custom Field Management
domain in the System functional area.You can set up the calculated field to compute the difference between 2 dates or times.
Workday rounds down the results to the nearest whole number.
- Access theCreate Calculated Fieldtask.
- SelectDate Differencefor theFunction.
- As you complete theCalculationtab, consider:
Option Description Start Date FieldSelect a field associated with the business object as the starting date for the calculation.Example:Hire Date.End Date FieldSelect a field associated with the business object as the ending date for the calculation.Example:Termination Date.Return Zero on ErrorSelect the check box to return a zero value instead of displaying an error if theStart Date FieldorEnd Date Fieldreturn a blank value.Example: If you hired a worker on 01/01/2020 and they're an active employee, they wouldn't have a termination date. If theEnd Date FieldisTermination Date, Workday returns a blank value for the worker. Select the check box to display a zero instead of an error.If you use a Prism business object with this calculated field, Workday always returns a zero on error.Ignore Lower Level Date ComponentsSelect to enable Workday to ignore sublevel date or time values during calculation.Example: If you don't select the check box, the difference between 04/01/2006 and 02/15/2008 is 1 year. If you select the check box, the difference is 2 years because Workday computes the years, ignoring the day and month values.
You can calculate the difference between 2 dates, such as the:
- Days remaining before a worker returns from leave.
- Days since a position opened.
- Months since a worker back-dated or forward-dated an expense report.
- Worker's age in years, as of 01/01/2019.
- Create additional calculated fields.
- Create new calculated fields from within a date difference calculated field.