I don't know how it happened that I typed it that way. Good correction.
What I meant to say is that the record date and the paydate are unimportant and the only thing that matters is the ex-date. The record date is the date on which a due bill will be attached to the stock and remains with it until the exdate (this is otherwise known as the due bill period) at which time the dividend goes to the current holder of the stock on that date. If you sell in between then record date and the exdate, you don't get the stock dividend.