When should you get a tetanus shot after a wound?

When should you get a tetanus shot after a wound?