For traffic tickets, you have 30 days from the date you are served with the ticket to dispute it. If you're served the ticket after the offence, this means from the date the officer issues the ticket, not the date of the driving incident. Remember too that traffic tickets are different from Immediate Roadside Prohibitions, 24-Hour Driving Prohibitions, or Administrative Driving Prohibitions, which have different time periods for dispute.
But what happens when you miss the time to dispute your traffic ticket? This blog post attempts to explain what to do in that situation.