Question
Ciberspring International (India) LLP
IN
Last activity: 23 Apr 2020 23:19 EDT
Datedifference
Hi All,
I have two dates and I need difference in months. Is there any function which will helep this
I already used differenceBetweenDays function but its giving in days.
@(Pega-RULES:BusinessCalendar).differenceBetweenDays(.YearOfPurchase, @getCurrentDateStamp(),false,"")
Example:
Selected date = 01/02/2017
Current Date = 21/04/2020
Required Difference in Months.
***Edited by Moderator Marissa to update Pega Academy to General; Platform Capability tags****
Hi
You can use DateTimeDifference and pass "M" as the last parameter for precision.
Regards
Bhavya