My lad works shifts (week of days followed by week of nights).
answer is hard to give, as everyone is different.
However few tips. When first on nights caffeine tablets or red bull (in true BBC style, other similar drinks are also available).
Try and eat when you get in from nights and then go to bed after a couple of hours. Try and get up at least 2 hours before you need to get to work and eat a decent meal. this sets you up for the night and givs you a couple of hours to fully wake up.
If anything, it is a case of getting into a routine and do what works best for you. Good luck