add fix method validDate.