What are you specifically trying to do?
If you can rotate a 3D object, the process is the same, just keep rotation 0 in the third dimension. What kind of 2D object are you trying to rotate: a model, a sprite, something else? If you're rotating a Vector2, you can just use a matrix like you would for a 3D object.