Change maxdate to today