When does the suspension start? Is it before sentencing or after? I have to enroll in classes and I'm trying to get my license back as soon as possible.
I take it you aren't the person who asked this question, two years ago!
There are two ways your license can be suspended: after a conviction in criminal court, and through the DMV administrative process. They work independently.
When you're arrested for a DUI, the officer will usually take your license and give you a pink piece of paper, which is the DMV DS-367 form. If you don't contact DMV within ten days to request a hearing, your license will automatically be suspended 30 days after your arrest. If you request a hearing, DMV will allow you to drive, pending the outcome of the hearing.
If you lose the DMV hearing, you have to serve a "hard" 30 day suspension before you're eligible for a restricted license.
All of this assumes many things, including that you're 21 or older, this is a first offense, and you didn't refuse to take a chemical test.
I'd suggest posting a new question with those specific details, instead of adding a comment to an old question. You're much more likely to get an answer. Keep in mind that laws can change over a two year period, too.