Is it possible to make future dates non-selectable in Jquery UI date picker?

I’m using Jquery UI date picker widget for selecting date. There’s an option of range for years but I don’t see anything to restrict all future dates.  Is it possible to make future dates non selectable something like this 
1 answers

Can you use a different picker? Then I would suggest to use ‘React DateTimePicker’ from the app store. This one allows you to set the minimum or maximum date.