On my form I have rixh Tetx control and one button.

User can type in rixh text control. I need the functionality that when I click on the button then date should be inserted in the rich text box on the current position of the cursor.

user may click anywhere in the rich text box and then click on the button. So date should be inserted on the cursor position.

Can anyone help and guide me please.