when can a baby survive outside of the womb?

I'm 21 weeks and went into preterm labor today and they stopped it but they said it doesn't look like I'll make it much further. What is the earliest a baby can survive outside the womb?