My question involves a speeding ticket from the State of: CA

Hi,
I've received a courtesy notice with a due date that's different (further out) than the ticket. I want to take action and contest my ticket, do I have to do this before the ticket's due date or the courtesy notice's due date?

Thanks!