If I sell a stock after-hours the day before the ex-date will i still get the dividend?

Ex-date is 12/29/09, I purchased the stock during normal trading hours on 12/28/09 and then sold it after-hours the same day. Will I still get the dividend?
4 answers 4