You must have owned the stock at the close of business on July 17 to get the dividend. If you bought it on or before July 17, you still get the dividend if you sell on July 18 or thereafter. If you bought the stock on July 18, you do not get the dividend. On the other hand, you can just wait 3 months for the next ex-dividend date. Click on the Historical Prices tab to see the actual "Close" and the "Adj. Close" for July 17. The difference between the two represents the amount of the dividend; in this case $0.60.
Having worked in the investment business since 1959, it always amazes me how many people have trouble understanding the meaning of the ex-dividend date. Back then, the settlement date was 5 days after the trade date. The settlement date was then changed to 4 days after the trade date. Because of modern technology, it has since been shortened to 2 days. There was no such thing as wire money transfers, so we had to depend on the U.S. Postal Service. Many customers held stock in the form of a certificates registered in their names. It was common practice for brokers to accept buy orders without having the funds already in the account or sell orders without having the stock in the account. It was the responsibility of the customer to get the payment (in the case of a purchase) or the stock certificate (in the case of a sale) to the broker in time to meet the settlement date. Everything was done by hand. Average daily trading volume on the NYSE was about 5,000,000 shares total. I can still remember the pandemonium when the NYSE had it's first 10,000,000 share day, and the "tape" ran several hours late. There used to be an actual human person sitting at a machine entering every order (round lots only) to be broadcast over the ticker tape.
Over the years many changes have made day trading feasible (but not always profitable) for the "average" investor.
1 - Elimination of fixed commission. A round trip on 1000 on a $50 stock could cost several hundred dollars. Now rt can be done between $10 and $20.
2 - Penny pricing has reduced the spread to .01 for active stocks from the typical 1/8. Thats another $110 saved.
3 - On-line trading access at home
4 - Access to Level 2
5 New buying power rules for day traders. You can trade up to 4x your equity (but be out or down to 2x by close). No interest if no overnight margin debit balance. $25K min account. Purchase limit is not cumulative during the day. I can buy/sell multiple times. Have often traded over $1M worth of stock on one day. If out by end of day no interest.
So what that means if I have a 100K account I could buy 4700 (about 400K worth) shares of CAT (at the offer) and have a profit if bid goes up .02 . Works the other way of course. And do not hold shares overnight on earnings day!!!!!