Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Diffrence between 2 Dates Rounded down

Former Member
0 Likes
486

Hello Experts,

How do I calculate difference between 2 dates in Years, Months & Days

I have tried the function  FIMA_DAYS_AND_MONTHS_AND_YEARS, the problem in this function return the values Rounded up

I need the similar function returns the same values Rounded DOWN

Thanks

1 ACCEPTED SOLUTION
Read only

amy_king
Active Contributor
0 Likes
418

Hi Jamil,

Use I_FLG_SEPARATE = true. This tells the FM to consider each of month, day and year separately. If this doesn't resolve your issue, please reply with example input and what you expect to get as a result.

Cheers,

Amy

2 REPLIES 2
Read only

Former Member
0 Likes
418

What do you mean by "Rounded DOWN"? Don't you want to consider the DATE_TO parameter in the interval? If it's the issue just decrease the date_to parameter by 1 day.


Read only

amy_king
Active Contributor
0 Likes
419

Hi Jamil,

Use I_FLG_SEPARATE = true. This tells the FM to consider each of month, day and year separately. If this doesn't resolve your issue, please reply with example input and what you expect to get as a result.

Cheers,

Amy