The objective is to exercise and sleep as high as you can for as long as you can before you go higher. What is “sufficient” depends on many factors, including your personal physiology.
Just one night at Whitney Portal is better than one night in Lone Pine. Moderate exercise at relatively high elevations also helps, but don’t overdo it. If you have two days to acclimatize, do exactly what Steve says.