Question3Replies193Views KolliparaJ Member since 2019 11 posts Sri Vishnu Educational Society Posted: 9 months agoLast activity: 9 months 4 weeks ago Datetime differenceHelloI have a requirement.Customer enters pickupdatetime for his order.he must be able to cancel his order until before 2 hrs of pickup.I am unable to caluculate the datetime difference in the expression builder,Please help me.Thank you! Pega Platform ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 9 months agoAbhinav7 PEGA replied to KolliparaJHi, Please use dateTimeDifference function.It is an OOTB,you can pass two different datetime to calculate their difference. Please let me know if you face any issue. Thanks, Abhinav Posted: 9 months agopa1singh PEGA replied to KolliparaJHello! Following is an example to use @DateTime.DateTimeDifference function for calculating difference: DateTimeDifference("20191222T100000.000 GMT", "20191222T110000.000 GMT", "h") = 1.0 You can change the precision as per your requirement(hours, day, month etc.) Thank you, Pawan Posted: 9 months agoSreepriya PEGA replied to KolliparaJHi Harika, You can use DateTimeDifference(CurrentDateTime(),.PickupDateTime,"h") as below: Are you seeing any error in the expression builder using above? Thanks.