Question6Replies390Views POORNIMA P P Member since 2018 7 posts LTI Posted: 11 months agoLast activity: 11 months 3 weeks ago How to set date automatically in Pega which depends on other date?Hi,My requirement is "End Date" should set to 365 days from the "Start Date".The End Date should automatically set once after we entered a Start Date.For Example,Start Date:23/9/2019 End Date:23/9/2020***Edited by Moderator Marissa to update platform capability tags**** Pega Platform Low-Code App Development User Interface ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 11 months agoAbhinav_Chaudhary Synechron Inc replied to POORNIMA P PYou can make use of below function - @(Pega-RULES:DateTime).addToDate(.StartDate, 365, 0, 0, 0) Posted: 11 months agoPOORNIMA P P LTI replied to Abhinav_ChaudharyThank you so much.But i have been using Pega 8.1.There ,i have found the option to set the set automatically without writing your condition.Please find the attachment if required. Posted: 11 months agoAkhilaD9667 Serendebyte replied to POORNIMA P PHi Poornima, Try using the below code in the in data transform on change of start date @DateTime.addToDate(.StartDate,365,0,0,0) Posted: 11 months agoPOORNIMA P P LTI replied to AkhilaD9667Thank you.I have used Declare Expression.Please find the attachment. Posted: 11 months agoAbhinav Societe Generale SA replied to POORNIMA P PI think you can try using declare expression for End Date with similar above expression. Posted: 11 months agoPOORNIMA P P LTI replied to AbhinavThanks.I have tried with Declare Expression and i got the output in Pega 8.1.Please find attachment.