Posted: 28 Aug 2018 7:20 EDT Last activity: 14 Aug 2020 10:27 EDT
Disable Past/Future date in DateTime control
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***
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.
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.