Record date (6/19): Anybody owning at the end of that date gets mailed the check later on. BUT, owning includes waiting on that 3 day lag on stock purchases.
Ex-div date (6/17): This adjusts for the 3 day delivery on stock. It is 2 days before the record date. To get the dividend you must buy before this date.
To collect the dividend, you needed to buy a few days ago. Sorry.