Treat the hornet's nest at sunset or after dark. Hornets return to their nest at night and are at rest, so you're more likely to get all of the hornets if you spray at night.