change setMin/MaxDate functions