# Insert Date and Time Dialog

This dialog allows you to insert a date-time value in the document.

![An image showing the insert date and time Dialog dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/5e7c9c53d388ff6579a9470eda738347/richtextbox-dialogs-insert-date-time-0.png)

The dialog can be opened from the **Date & Time** button in the **Insert** tab of the [RadRichTextBoxRibbonUI](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/ui-for-applying-rich-text-formatting/features-radrichtextboxribbonui).

![An image showing the button that opens the insert date and time Dialog dialog of RadRichTextBox for WPF](https://www.telerik.com/products/wpf/documentation/assets/0c6f9c50991d145a382b4098326f1248/richtextbox-dialogs-insert-date-time-1.png)

## Showing the Dialog Manually

The dialog can be shown by executing the `ShowInsertDateTimeDialogCommand`. See how to bind the command to an external button in the [Commands](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/features/commands) article.

**Executing the show dialog command**

```C#
	this.richTextBox.Commands.ShowInsertDateTimeDialogCommand.Execute(null);
```

Alternatively, call the `ShowInsertDateTimeDialog` method of `RadRichTextBox`.

**Using the show dialog method**

```C#
	this.richTextBox.ShowInsertDateTimeDialog();
```
