Sorry SD. Yep, ex-div means exempt the dividend. You can sell on that date and you will retain the dividend.