Asked on 30 Jun 2019
You must hold the stock the date before the ex-dividend date to be entitled to the dividend. So yes, you will be entitled.
30 Jun 2019
Thanks for clarifying that it is possible to qualify for dividend when buying before ex dividend date and selling on ex-dividend date.