if you owned them yesterday and sold them today you will still get the dividend. Record date is the allowance for T+3. A buyer yesterday takes trade day plus 3 to get on the register.