People who plan to file for bankruptcy are required to get credit counseling from a government-approved agency within six months (180 days) BEFORE they file for bankruptcy. Each person in a joint case must complete the counseling.
Visit the U.S. Trustees' page for more information on credit counseling.