Ex-div is 27, but the markets are closed 25 and 26, with early closure on 24 (1:00). 24 is the last chance to buy in if you want the up-coming dividend. 27, the ex-div date, is too late.
(Actually, that's how I think of an ex-div date, ie. it is too late - you have to be in before that date)