If milk has been UHT (ultra high temperature) treated and is in a tetrapak (laminated card) carton then it should last 6 months+ unrefrigerated. If it is kept in a translucent plastic (usually PET) carton this may shorten the life. It’s often a marketing trick to keep drinks cold unnecessarily. They appear “fresher” to consumers.
Pasteurised milk has a shelf life of a week or less and needs to be permanently refrigerated.
This is generally true for soya etc milk even if the temperatures for the different levels of heat treatment are slightly different.
Latest Answers