Allow setting maximum date for date picker

Can we have something like that to be able to set maximum date?
Thanks a lot.