Question4Replies332Views Srikanth_Kante Member since 2016 2 posts Vasavi College Of Engineering Posted: March 31, 2017Last activity: March 31, 2017 Closed how to use current date in decision treeI am Writing a decision Tree where I have to calculate difference between the present date from date entered from userIs there any way I can get the present date in pega?***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 agorawap PEGA replied to Srikanth_Kante(Pega-RULES:DateTime).CurrentDate Above function should return you current date. Let us know if this helps :) Posted: 3 years agoMahesh Midthuru PEGA replied to Srikanth_KanteHi Srikanth, In Pega, you can use the function @(Pega-RULES:DateTime).CurrentDate() to get the current date or you can directly create java.util.Date currentDate = new java.util.Date(); java code to create the current date. Hope any one of the option might help you. Regards Mahesh Posted: 3 years agoMahesh Midthuru PEGA replied to Mahesh MidthuruAlso for better usage of current date function look into this discussion. Posted: 3 years agoAkshaySinha PEGA replied to Srikanth_KanteHi, Try Using @DateTime.CurrentDate("MMM dd yyyy hh:mm:ss a", "America/New_York") and let me know if it helps.