The X-date is all that matters. As long as you buy before todays close you WILL be getting the stock divi.