Convert orientation from world to local frame

I have an orientation of a robot in world frame, how can i convert them into local frame?