how long do you have to hold stock to get a dividend?
The ex dividend date occurs one business day before the company's Record Date. To be entitled to a dividend a shareholder must have purchased the shares before the ex dividend date. If you purchase shares on or after that date, the previous owner of the shares (and not you) is entitled to the dividend.