I do timeouts with my almost two year old but they are probably acting out because they want attention like @ecahanes, says take some time out of the day and just give the 2 year old your undivided attention so they still feel special and remember they are still a toddler so something's are just them being a toddler
Still trying to figure it out. She has to know it's hard for the toddler so they will lash out...what has helped me is taking twenty minutes every morning with my toddler just him and before bed it has helped him lashing out but otherwise I have a time out area