Discussion 6 Replies 4409 Views × Close popover Thappeta Raju (rjreddy01) TCS TCS IN View Profile Send Message rjreddy01 Member since 2015 4 posts TCS Posted: October 26, 2015 Last activity: November 25, 2015 Posted: 26 Oct 2015 3:41 EDT Last activity: 25 Nov 2015 7:20 EST Closed i would like to display only past dates (MMDDYYYY) on Date of Birth filed i would like to display only past dates (MMDDYYYY) on Date of Birth drop down filed, could someone help me on this, do we have any OOTB? User Experience Share × 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 Discussion, please write a new Discussion. Posted: 5 years ago Posted: 29 Oct 2015 13:46 EDT × Close popover Jerry Gaspard (JPGASPARD) Accenture Consultant Accenture US View Profile Send Message JPGASPARD Accenture replied to rjreddy01 So you want to have a single drop down that has something like 01/01/2015 01/02/2015 01/03/2015 up to the current date? Posted: 5 years ago Posted: 29 Oct 2015 14:05 EDT × Close popover Phani Sahukaru (sahup1) PEGA Architect - Financial Services Pegasystems Inc. IN View Profile Send Message sahup1 PEGA replied to rjreddy01 We may either need to create a Data Transform or Activity rule to build the past dates list with a business parameter ['How many past year date options should be displayed'? 'N']. Step#1: Get the current date [Param.sysCurrentDate] Step#2: Create a new page of type 'Code-Pega-List' to hold the dates list Step#3: Build the results page list based on the business input parameter of 'How many past date options should be displayed'? Iterate through the parameter 'number of years (N)'. lets say N=10. so, the drop down list the years from (Date 2015 - Date 2005) Step#3.1: Append the page results to the new page created in step#2 Step#3.2: Set the Year value on each page list. [(Param.sysCurrentDate) - ((Param.pyForEachCount) - 1)] Please share your thoughts, Thank you! Posted: 5 years ago Posted: 30 Oct 2015 2:18 EDT × Close popover Thappeta Raju (rjreddy01) TCS TCS IN View Profile Send Message rjreddy01 TCS replied to rjreddy01 @ JPGASPARD I want to display 3 drop downs one DD, MM and YYYY and now here i just want to Display past years say for example, current year is 2015, in the drop down it should display only Past years like 2014,2013,2012......up to "-125"(Minus 125) years. Posted: 5 years ago Posted: 30 Oct 2015 12:22 EDT × Close popover Jerry Gaspard (JPGASPARD) Accenture Consultant Accenture US View Profile Send Message JPGASPARD Accenture replied to rjreddy01 Create a data page that holds the current year and all the previous years you want. Activity to populate it can get the current date using the OOB function CurrentDateTime in the DateTime library. Get the first 4 characters from that return, it will ne the 4 digit year. Convert that string to in Integer/int. Loop from 1 to number of year back you want. Set year to year - 1: Append that value to the data page. The data page will then contain current year as the top value and decreasing down to the range you are looking for. Then on the section you can use a dropdown built from that data page. Posted: 5 years ago Posted: 24 Nov 2015 8:20 EST × Close popover Krishna Chaitanya Dhilli (DhilliChaitanya) Mindtree Module Lead Mindtree AU View Profile Send Message DhilliChaitanya Mindtree replied to rjreddy01 Hi, I would like to display only past dates,is there any edit validate rule? Posted: 5 years ago Posted: 25 Nov 2015 7:20 EST × Close popover Raghunath Bende (BendeRaghunatha) Incessant Technologies Incessant Technologies IN View Profile Send Message BendeRaghunatha Incessant Technologies replied to rjreddy01 Hi Krishna, editvalidate rule is used to validate the input provided into the field. we have pyIsPastDate to check if a date or datetime is before current time.