Six years from the date the first bankruptcy was discharged.
It's actually six years from the date the first bankruptcy was filed, not discharged. See 11 U.S.C. § 727, which states "(a) The court shall grant the debtor a discharge, unless- (8) the debtor has been granted a discharge under this section, under section 1141 of this title, or under section 14, 371, or 476 of the Bankruptcy Act, in a case commenced within six years before the date of the filing of the petition; [or] (9) the debtor has been granted a discharge under section 1228 or 1328 of this title, or under section 660 or 661 of the Bankruptcy Act, in a case commenced within six years before the date of the filing of the petition, unless payments under the plan in such case totaled at least- (A) 100 percent of the allowed unsecured claims in such case; or (B) (i) 70 percent of such claims; and (ii) the plan was proposed by the debtor in good faith, and was the debtor's best effort...." Since the Code says "commenced," it means the filing date is the relevant date. Please note that nothing in this posting or in any other posting constitutes legal advice; this is simply my understanding of the facts, which I do not warrant, and I am not suggesting any course of action or inaction to any person.
Under the bankruptcy laws effective on October 17, 2005, Chapter 7 cannot be filed unless the debtor was discharged from the previous Chapter 7 or bankruptcy more than eight years ago.
The debtor cannot file a Chapter 13 unless: (1) the debtor received a discharge under Chapter 7, 11 or 12 more than four years ago; or (2) the debtor received a discharge under Chapter 13 more than two years ago.