Just want to get this straight....X-dividend date is Tues(29)...trades take 3 business days to settle....so to collect dividend you need to buy by today(Wed)?...or will tomorrow(Thurs) work?

Thanks