In theory, one may not get the dividends if the buy trade is on the in-dividends and sale date is on the date after the ex-dividend date. I am not sure. So I don't trade around dividend dates.