To
To be eligible for the dividends, you must have purchased the stocks before the ex-date. You will also be eligible for dividends even if you have sold the stocks on the ex-date as well. If you are eligible for dividends, you will receive the dividends on the dividend payment date.