The OP is not asking about what to do to get to sleep, he is asking what should he do if he has been doing some sort of all niter and then had to function through the day with ZERO sleep.
Drink milk throughout the day, it will help with stabilizing your blood sugar. Coffee will help too. Don't take any sort of power naps if you can avoid it, it will make u more out of it for the rest of the day, and it might fuck you up for getting to sleep on time once you get home. If you can avoid it, don't drive. Take notes if you are in meetings, otherwise you won't remember details later.