Here's a good explanation below on the ex-dividend date. In this case, you had to own the stock the day before the ex-date to get the 22cents/share which means you had to buy on the 12th. If you look at the historical prices the stock closed at 15.18 on the 12th. The adjusted close was 14.96, hence the subtraction of the 22 cents. But that was on the 12th. The ex-date of the 13th was too late. (see explanation)
The ex-dividend date is two business days prior to the record date. To be a stockholder on the record date an investor must purchase the stock before the ex-dividend date. The latest date he can buy the stock to be a stockholder on record and be entitled to the dividend would be one day prior to the ex-dividend date to allow for the three stock trading day settlement of the stock purchase. If the investor purchases the stock the day before the ex-dividend date the investor would be a stockholder on the record date and would be entitled to receive the dividend payment.
An investor who wishes to be entitled to the dividend does not have to wait until after the record date to sell the stock; however, the investor must hold the stock until the ex-dividend date. If the investor were to sell the stock on the ex-dividend date or afterwards, the investor would still be entitled to the dividend payment. In this example, assuming that the investor purchased the stock one day before the ex-dividend date, the investor would be a stockholder on the record date. If the investor sells the stock on the ex-dividend date, the buyer of the stock would be a stockholder one day after the record date given the three stock business trading day settlement. The person that bought the stock would not be entitled to receive the dividend.
An investor only needs to own the stock for one day (the record date) to be entitled to receive the dividend payment. If the investor buys before the ex-dividend date, and sells on the ex-dividend date or after, the investor will receive the dividend payment.