As below, but you can also say "two years, six months". Nothing wrong with that.
.
Similarly two years, three months, seems a little more likely that two and a quarter years, but both ok.
Similarly two years, four months, seems a little more likely that two and a third years, but both ok.