It depends what brand. If they're Penzeys, they seem to last at least several years. I've noticed that sometimes an older one smells all right but tastes "off" when I use it in something. If they're grocery store ones, I don't think they last more than a year or so. My daughter keeps them forever and when I cook at her house, nothing tastes quite right.
I write the date on the bottle to keep track.