Typically the date of record is when you have to hold your shares till. After that day you are able to sell and still receive the dividend.