When should I prune apricot tree?

I live in Mississauga. Should I prune my apricot tree before flowering or during flowering, or when is the best time to prune the tree? Thank you very much!…