Sold it today and bought and sold again many times and then bought the same amount of shares by the end of today and held .... would you get the dividend because you had the same amount of shares day after day or would you lose out because there was a point in time where you did not have any shares today.
It does`t matter what you do today
whatever you held at the end of yesterday is what counts
that`s why today is called ex-dividend day
you can buy/sell over and over--it makes no difference
you could have bought and sold all day yesterday too
it only matters what you were holding at the end of the day
and I`m not talking about illicit substances
as long as you had some shares at the end of trading yesterday you will get the dividend on those shares. any shares you buy today will have a settlement date of the 12th so they will not be elligible. if you sell the shares you had as of yesterday they will still get the dividend since they will settle on the 12th after the div date.