Buying to Collect a Dividend. The latest you can buy a stock and receive the dividend is before the stock market closes three business days before the dividend record date. On the next day the stock is said to have gone ex-dividend, and buyers on that day are not entitled to a dividend payment.