The ideal time to take sleep supplements is 30 to 60 minutes before bedtime, especially if you haven't eaten for a few hours prior. The sleep stack can be very beneficial and is preferable to melatonin because melatonin is a hormone that we produce endogenously, and the dosages in most commercial products are much higher than what our body naturally makes.