What is the deadline for registering to vote in an election?

For all elections, voters must register 20 days before the date of the election.