The optimal time to apply ice is directly following an injury. It is best within the first 24 hours in order to reduce inflammation and swelling. You can continue to ice the area for up to 48 hours. If you find that the swelling has not gone down after this time, it may be necessary to speak to your doctor.