In general, the answer depends on what chapter you filed previously, what chapter you are trying to file now, and the filing dates (not the discharge dates), of the previous case(s):
Chapter 7 then Another Chapter 7: The debtor may not be a debtor under Act if has filed a case w/n 8 years before the date of the current filing of the petition.
Debtor may not receive a chapter 13 discharge if D is received a discharge in a 7, 11,or 12 case filed within 4 years of the filing of the current case.
Chapter 7, Then a Chapter 13: