Discussion6Replies4347Views rjreddy01 Member since 2015 4 posts TCS Posted: 5 years agoLast activity: 4 years 11 months ago Closed i would like to display only past dates (MMDDYYYY) on Date of Birth filedi 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 Interface ×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 Discussion, please write a new Discussion. Posted: 5 years agoJPGASPARD Accenture replied to rjreddy01So 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 agosahup1 PEGA replied to rjreddy01We 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: 4 years agorjreddy01 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: 4 years agoJPGASPARD Accenture replied to rjreddy01Create 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: 4 years agoDhilliChaitanya Mindtree replied to rjreddy01Hi, I would like to display only past dates,is there any edit validate rule? Posted: 4 years agoBendeRaghunatha Incessant Technologies replied to rjreddy01Hi 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.