How to sleep after a night when your next shift is a day shift

NQN here I am struggling with the switch of having a night shift and then my next shift being a day shift. How do you guys sleep I am soooo tired. Last time I slept into the whole day and only had about 2 hours of sleep before my shift. Do I stay up all day and sleep at night? Do I only sleep a few hours after coming home?Please give me some tips on how you guys do it. I’m truly tired of being tired.