Quote from bungrider:
Yes; you need to own it AT THE CLOSE the day before it is ex-div. You can sell it in the afterhours and still get the dividend, so theoretically you could own the stock for <5sec and still get the div, if you bought it at 3:59:59 and sold it at 4:00:01.
Definitely not a stupid question; it's confusing and I remember it as ex-div being the first day without dividend.
You sure???