What is the ex-dividend date?
The ex-dividend date is the official day that anyone owning shares will be entitled to an upcoming dividend (which is called the dividend distribution date).
Please be aware you must purchase the shares at least the day before the ex-date and hold them to at least Market opening on the ex-date to qualify for that dividend.
You may sell the shares at any point on the ex-date or after and still receive the dividend. However, purchases on the ex-date will not qualify for that dividend.