cancel
Showing results for 
Search instead for 
Did you mean: 

Business rule Help

0 Kudos
174

I have the following requirement in employee central.

I have a portlet containing 3 fields - Start date (Date type), End date (Date type), Date Difference (String type).

The requirement is to write a business rule to set the Date Difference field in the format (X Years, Y months, Z Days) based on Start date field value and End date field value.

Thanks in advance for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

nlgro023
Active Contributor
0 Kudos

Well in terms of structure it would be something like this (and each number would be a format as shown in the initial clause).



The problem is that it will be very challenging to come up with something to get a correct reflection of the months and days (that would be a lot of variables most likely with deep calculations), where you'd be working with the outcome of Get Number Of Calendar Days()