Question: how long do you have to hold a stock to get the dividend?
Answer: In the simplest sense, you only need to own a stock for two business days to get a dividend payout. Technically, you could even buy a stock with one second left before the market close and still be entitled to the dividend when the market opens two business days later.