Question5Replies7194Views Srikanth_Kante Member since 2016 2 posts Vasavi College Of Engineering Posted: 3 years agoLast activity: 3 years 6 months ago Closed How to calculate difference between two dates?I am Using Declare Expression to calculate difference between two dates but am getting error with it***Moderator Edit: Vidyaranjan | Updated Categories*** Case Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 3 years agoShanthini_Charles PEGA replied to Srikanth_KanteHi Srikanth, Instead of using declare expression there are @differenceBetweenDates() and differenceBetweenDay() function which returns the difference between two dates . Regards, Shanthini Charles Posted: 3 years agoSrikanth_Kante Vasavi College Of Engineering replied to Shanthini_Charleshow do i use those in a decision tree? thanks in advance. Posted: 3 years agoShanthini_Charles PEGA replied to Srikanth_KanteHi Srikanth, Could you please explain your usecase how you want? I could suggest you that you can have a data transform and use these functions to get the updated value and then place these values on the decision tree. Let me know if this helps Regards, Shanthini Charles Posted: 3 years agoSrikanth_Kante Vasavi College Of Engineering replied to Shanthini_CharlesI actually have to find the difference between system date and date given by the user and see if the value is greater or less than an year to decide the flow of the case Posted: 3 years agoAkshaySinha PEGA replied to Srikanth_KanteHi, You can use @DateTime.DateTimeDifference function to calculate difference between two dates.