So I need to stay up all night.

The nap method works best for me. I’ve often had to go back into work at 11:30pm and it’s taken at least 4 hours at times so I suggest you nape for a few hours, wake up around 11, go to work and then go to sleep. It will ease you into the new routine pretty well as you take the next day for final sleep adjustment.