A starter might keep for months depending on the yeast strain and how it's treated, although viability and vitality will suffer and it may need to be built back up after awhile. Use within 2 weeks and you're golden. Do not decant the starter beer off the yeast until you are ready to pitch. I pour off all but an inch of liquid and then swirl it up and pitch.