DO NOT trade around the Record Date. It is meaningless. It's all about the ex-date. And not even that is a 100% certainty in this case.