Allow setting maximum date for date picker

Set the maximum date.