Credit

Can I get csu/uc credit for taking classes in a community college during middle school? Or does it only count if taken during high school?