Your broker should automatically adjust your order, or pull it on the 27th. That's the ex-date according to Morning Star. If you actually get the divi, you pay the tax on it. If you get the stock after the divi, you don't pay tax on money that you don't get.