It is common for mothers and babies to leave the hospital soon after birth. This makes it necessary to do the test before the baby is 24 hours old. If this happens, health care providers usually recommend that the baby be tested again when he or she is 1 to 2 weeks old.