Ex-date is the date on which a company start executing a particular corporate action and it could result the change in the share price.
Record date is the Date on which company make the list of their shareholders to give benefit of the announced action. In india it takes 2 days to settle the shares in the account. So an invester must have to buy the shares 2 days earlier of the ex-date to get benefit of the announced action.
What is a Bonus Share?
A bonus share issue is when an investor receives shares in addition to their original investment. The additional shares are often given as a reward for the investor's loyalty or to encourage them to invest more money in the company.