as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
who gets the dividend when a stock is bought/sold around the ex-dividend date? [duplicate]
user
your understanding is incorrect.  the date of record is when you have to own the stock by.  the ex-dividend date is calculated so that transaction before that date settles in time to get you listed as owner by the date of record. if you buy the stock before the ex-dividend date, you get the dividend.  if you buy it on or after the ex-dividend date, the seller gets the dividend.
assistant