added setMinDate