How to block the future date selection from DOB

Hi All,

I am working with OpenEMR 5.0.2. I need to block the future date selection from patients Demographics DOB field.

How can I block the future selection from the date picker?