Is it possible to disable future dates in the Salesforce date picker? If so, how can this be done?

2 Answers 2


You can do in a complicated way using visual force and custom date picker. However I feel the best way to write a validation rule upon save to save if the selected date is in future or not, and throw the error respectively.


If VF page is not an option, This can help you out which actually increases the years, you can tweak the code to decrease. But since Salesforce may not support Javascript in sidebar , you might have to combine with this approach !!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.