As a general rule if the conduct was committed before the effective date of the new statute, the old statute will apply.
This response is intended to be a general statement of law that should not be relied upon as legal advice and does not create an attorney/client relationship.
It really depends on which "laws" you are referring to.
When laws are changed, whether or not they will be retroactive depends on whether they are substantive or procedural. Therefore, if you were charged in 2009 or 2010 with a crime you allegedly committed in 2009, all the punishment-related laws from 2009 should apply. However, the courts could determine that some of the 2010 changes were procedural, and try to apply the new 2010 laws. Still, punishments are always considered substantive, so you should not be subject to the new harsher punishments.