I need a name of the movie

An old comedy film about the girl’s father’s objection to his daughter’s sex before official marriage. In the end, the marriage takes place on the ship, but in the open water and the marriage is invalid

50 First Dates (?) … (never mind; marriage was valid on land).