leaning a baby off milk

when and how to lean a baby off similac ? how old were your babys . and how you do it ?