What is the Record Date in the context of stock dividends?

What does the Ex-Dividend Date signify for potential stock buyers?

How is the Ex-Dividend Date typically determined in relation to the Record Date?

In the Indian stock market's T+2 settlement cycle, if a company's Record Date is June 20th, when should an investor buy the stock to be eligible for the dividend?

What key information does the Record Date help determine?