please help to rotate a cube around it's own axis

I want to enter values of rotation first is thetax (rotation around cube’s x axis) next is thetay (rotation around cube’s y axis) , I give value of public variables thetax , thetay through inspector. there is also a default rotation. How to rotate according to given inputs . I have tried with Quaternions but they rotate around world axis,

With Quaternions it’s: transform.localRotation = myQuaternion;

With Vector it’s: transform.Rotate((myVector), Space.Self); or transform.Rotate(myVector.x, myVector.y, myVector.z, Space.Self);