Question 4 Replies 6396 Views × Close popover SHWETA SINGH (SHWETAVSINGH) EAI Systems EAI Systems SA View Profile Send Message SHWETAVSINGH Member since 2016 17 posts EAI Systems Posted: February 1, 2018 Last activity: February 23, 2018 Posted: 1 Feb 2018 1:39 EST Last activity: 23 Feb 2018 6:20 EST Closed Solved Set StartDate as a present date Hello, How to set the start date property should be the present date only while doing validations. I have checked inside the validation rule but there we can only set past or future date, there is no option to set the present date. Can anyone help? Thanks, Shweta V Singh. ***Moderator Edit: Vidyaranjan | Updated Categories*** Case Management × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover 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 ago Updated: 3 years ago Posted: 1 Feb 2018 7:25 EST Updated: 1 Feb 2018 7:24 EST × Close popover Umamaheshwar Reddy Midthuru (Mahesh Midthuru) PEGA Sr. Software Solutions Engineer Pegasystems Inc. US View Profile Send Message Mahesh Midthuru PEGA replied to SHWETAVSINGH Hi Shweta, Could you please share the screenshots of your use case what you are trying to achieve and where you were stuck as your requirement is not clear to understand. Regards Mahesh Posted: 3 years ago Posted: 1 Feb 2018 11:00 EST × Close popover Rachit Agarwal (Rachit_Agarwal) PEGA Senior Technical Solutions Engineer Pegasystems Inc. IN View Profile Send Message Rachit_Agarwal PEGA replied to SHWETAVSINGH If I understand correctly you need the currentDate(today's Date). Probably you can use an edit validate rule. In this edit validate rule you can write a java step which will compare the input Date Property with today's date. https://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/ This way you can perform validation.Please let me know in case I misunderstood something. Regards, Rachit Posted: 3 years ago Posted: 1 Feb 2018 14:33 EST × Close popover Yasantha Chamara Paranamanna (Yasantha) Virtusa PEGA Senior System Architect Virtusa LK View Profile Send Message Yasantha Virtusa replied to SHWETAVSINGH Hi Shweta, Suggestion: If the user is not allowed to select any other date except the current date, why wouldn't you make the field read-only and display the current date. Regardless, you can use expression evaluates to true and write a custom condition. Eg: !@pxDateTimeisPastOrFuture(DateProperty, true) Regards, Yasantha Accepted Solution Posted: 3 years ago Posted: 15 Feb 2018 23:25 EST × Close popover SHWETA SINGH (SHWETAVSINGH) EAI Systems EAI Systems SA View Profile Send Message SHWETAVSINGH EAI Systems replied to SHWETAVSINGH This is reply to all. Actually I have used "@(Pega-RULES:DateTime).CurrentDateTime()" this as a default value to set the current system time. So it worked. But thanx for your replies and efforts.