# Text Input Formatting

The DateRangePicker control provides a variety of settings that can be used to customize the date text input.

## Using Format String

To format the string value that shows the start and end dates, you can use the `FormatString` property of `RadDateRangePicker`.

**Setting the FormatString property**

```XAML
<telerik:RadDateRangePicker FormatString="{}Dates range: {0}" />
```

![Picture showing WPF RadDateRangePicker with custom format string](https://www.telerik.com/products/wpf/documentation/assets/25b4dba15f884621aac37c72f3c2a5ac/raddaterangepicker-text-input-formatting-0.png)

## Changing the Placeholder Symbol

The placeholder symbol is the underscore displayed when the selection is empty and the text input is focused.

> caption Default placeholder symbol

![Picture showing WPF RadDateRangePicker default placeholder](https://www.telerik.com/products/wpf/documentation/assets/3a713c37528ffffdd4be5f4056d870bc/raddaterangepicker-text-input-formatting-1.png)

To change the symbol, set the `Placeholder` property of `RadDateRangePicker`.

**Setting the Placeholder property**

```XAML
<telerik:RadDateRangePicker Placeholder="t"/>
```

> caption Custom placeholder symbol

![Picture showing WPF RadDateRangePicker with custom placeholder](https://www.telerik.com/products/wpf/documentation/assets/3620537cee5bfa8e2389046b0ac76c79/raddaterangepicker-text-input-formatting-2.png)

## Changing the Separator Between the Dates

The default separator between the date texts is the `:` symbol. To change this, set the `Separator` property of `RadDateRangePicker`.

**Setting the Separator property**

```XAML
<telerik:RadDateRangePicker DatePattern="d-M-yyyy"/>
<telerik:RadDateRangePicker DatePattern="yyyy/MM/dd"/>
```

> caption Custom separator

![Picture showing WPF RadDateRangePicker with custom separator](https://www.telerik.com/products/wpf/documentation/assets/4014c14c3cb65b7667cd750e193ef623/raddaterangepicker-text-input-formatting-3.png)

## Setting Date Pattern

The date pattern allows you to set the formatting of the date parts of the text. To apply a custom pattern, set the `DatePattern` property of `RadDateRangePicker`.

**Setting the Separator property**

```XAML
<telerik:RadDateRangePicker DatePattern="d-M-yyyy"/>
<telerik:RadDateRangePicker DatePattern="yyyy/MM/dd"/>
```

> caption Custom date patterns

![Picture showing WPF RadDateRangePicker with custom date pattern](https://www.telerik.com/products/wpf/documentation/assets/7b1b06994f635628112b74996d11f013/raddaterangepicker-text-input-formatting-4.png)

The `DatePattern` doesn't support formats for abbreviated days (ddd, dddd) and months (MMM, MMMM).

If the `DatePattern` cannot correctly parse the date, the `Culture` settings are used.

## See Also

* [Customizing Appearance](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/customizing-appearance)
* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/getting-started)
* [Selection](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/programmatic-selection)
