Although many stock transactions happen instantaneously, most trades take two days to “settle”. This settlement time can cause an investor to not be a shareholder of record on the record date. For this reason, the stock market requires companies to set an ex-dividend date that is typically two business days before the record date.