Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Nordea
SE
Last activity: 14 Aug 2020 10:27 EDT
Disable Past/Future date in DateTime control
Hi,
Can we disable past or future date in datetime control. I know we can fulfill this requirement applying edit validate rule or validate rule but it's better if customer is unable to select the future or past date in the control itself.
***Updated by moderator: Lochan to update platform capability***
-
Likes (2)
Gevindu Gunatilake ANAND BABU POTTURI -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
Yes you are correct,i think we have to do in validate or editvalidate rules
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
FR
Hello,
We do have Out-Of-the-Box functions to check if selected date is in the past but it isn't on the DateTime control itself. But I guess you can apply the function OnChange of the value or something like that.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Virtusa
IN
Hi,
You can use the display range in the presentation tab of cell properties of DateTime property in section.
refer to attachment
-
Srikrishna Yendru Kailash Sahu
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
But i dont think this will resolve the issue.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Nordea
SE
I don't think that option is available in pega 7.1.9 but that won't serve my purpose
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
Yes you are correct,i think we have to do in validate or editvalidate rules
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689993000/440d8be8-8ae7-4399-a38b-67c70c43d6de.jpg?itok=aXpzLw3l)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689993000/440d8be8-8ae7-4399-a38b-67c70c43d6de.jpg?itok=aXpzLw3l)
Tata consultancy Services
IN
Hi Anand,
Open the properties of the particular date property.Go to presentation tab,go to the display range and uncheck the checkbox for Next and enter 0 in the textbox beside.
This configuration doesn't allow user to enter future day by not displaying them to select.
Thank You
-
Srikrishna Yendru
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Future Proof AI
IN
Hi Prathyusha,
After un checking the checkbox and entering 0 in the years, it will still allow us to select the future dates that are remaining in the current year.
But i want to restrict the user from selecting future date from the next day itself.
Thanks
Sameer
-
Surya Gopireddy
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
Pegasystems Inc.
IN
Hi Sameer,
It looks like this post was last updated a few months ago. Do consider creating a new post for better visibility.
Thank you.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tata Consultancy Services
IN
Did you get any solution for this? I'm having the same requirement to restrict the selection of future dates. If you found any solution please share it with me.
Thanks in Advance.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tata Consultancy Services
IN
Hi Anand
I'm having the same requirement to restrict the selection of future dates from the next day. If you found any solution please share it here.
Thanks & Regards,
Anand Babu
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems Inc
US
Hi Anand, Did you find anything on same, I have same requirement to do, but not sure how can we achive without writing validation rule?
![](https://accounts.pega.com/sites/default/files/pega-user-image/442/REG-442498.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/442/REG-442498.png?source=PUMINIT)
Pegasystems Inc.
IN
Hello @RamaShankarP !
Did you get a chance to try the solution which is marked?
Regards,
Pallavi M | Moderator | Pega Collaboration Center
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems Inc
US
Hi Pallavi,
Thanks for the quick response, yes the options available is for the years and not for the days and months, so let's say I do not want the user to select the day from yesterday to any past date, for this the control does not allow anything. We can disable by years, so if disable all past dates by putting 0 to them then also it will show me the dates of 2020 from JAN to till date and user can select any date. one idea is to stop user using Edit vaidate, however i was searching if in pega 8.3 something came up for this.
Let me know if you have any questions?
Thank You
Ram Pandey