Corticosteroids are generally administered to pregnant women who are at risk of preterm delivery between 24 and 34 weeks of gestation. The optimal time for administration is at least 24 hours before delivery but no more than 7 days prior. The commonly used corticosteroid for this purpose is betamethasone or dexamethasone, given in two doses 24 hours apart.