# Appearance

In this article, you will find information about the styling options and rendering of the Telerik UI for ASP.NET Core DateTimePicker.

For a live example, visit the [Appearance Demo of the DateTimePicker](https://demos.telerik.com/aspnet-core/datetimepicker/appearance).

## Options

The DateTimePicker supports the following styling options:

* [`Size`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/datetimepicker/appearance#size)—configures the overall size of the component.
* [`Rounded`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/datetimepicker/appearance#rounded)—configures the border radius of the component.
* [`FillMode`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/datetimepicker/appearance#fillmode)—configures how the color is applied to the component.

### Size

The `Size` option controls the size of the DateTimePicker. The `k-input-{size}` class, which is applied to the wrapping span element of the DateTimePicker, reflects the value of the `Size` option.

The following values are available for the `Size` option:

* `Small`—small size (applies the `k-input-sm` class to the wrapping span element).
* `Medium`—medium size (applies the `k-input-md` class to the wrapping span element).
* `Large`—large size (applies the `k-input-lg` class to the wrapping span element).
* `None`—unset.

The following example demonstrates how to set `Size` in the declaration of the DateTimePicker:

```Razor HtmlHelper
@(Html.Kendo().DateTimePicker()
    .Name("datetimepicker")
    .Size(ComponentSize.Medium)
    .Value(DateTime.Now)
    .HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" })
    .DateInput()
)
```

```Razor TagHelper
<kendo-datetimepicker name="datetimepicker"
                      size="ComponentSize.Medium"
                      value="DateTime.Now"
                      date-input="true"
                      style="width:100%"
                      title="datetimepicker" />
```

> When not explicitly set, the applied theme controls the default size.

```html
<span class="k-datetimepicker k-input k-input-md">
</span>
```

### Rounded

The `Rounded` option controls the border radius of the DateTimePicker. The class that corresponds to the `Rounded` option is `k-rounded-{rounded}`.

The following values are available for the `Rounded` option:

* `Small`—small border radius (applies the `k-rounded-sm` class to the wrapping span element).
* `Medium`—medium border radius (applies the `k-rounded-md` class to the wrapping span element).
* `Large`—large border radius (applies the `k-rounded-lg` class to the wrapping span element).
* `Full`—largest border radius (applies the `k-rounded-full` class to the wrapping span element).
* `None`—unset.

The following example demonstrates how to set `Rounded` in the declaration of the DateTimePicker:

```Razor HtmlHelper
@(Html.Kendo().DateTimePicker()
    .Name("datetimepicker")
    .Rounded(Rounded.Medium)
    .Value(DateTime.Now)
    .HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" })
    .DateInput()
)
```

```Razor TagHelper
<kendo-datetimepicker name="datetimepicker"
                      rounded="Rounded.Medium"
                      value="DateTime.Now"
                      date-input="true"
                      style="width:100%"
                      title="datetimepicker" />
```

> When not explicitly set, the applied theme controls the default border radius.

```html
<span class="k-datetimepicker k-input k-rounded-md">
</span>
```

### FillMode

The `FillMode` option controls the way color is applied to the rendered DateTimePicker. The `k-input-{fillMode}` class, which is applied to the wrapping span element of the DateTimePicker, reflects the value of the `FillMode` option.

The following values are available for the `FillMode` option:

* `Solid`—applies the `k-input-solid` class to the wrapping span element.
* `Flat`—applies the `k-input-flat` class to the wrapping span element.
* `Outline`—applies the `k-input-outline` class to the wrapping span element.
* `None`—unset.

The following example demonstrates how to set `FillMode` in the declaration of the DateTimePicker:

```Razor HtmlHelper
@(Html.Kendo().DateTimePicker()
    .Name("datetimepicker")
    .FillMode(FillMode.Solid)
    .Value(DateTime.Now)
    .HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" })
    .DateInput()
)
```

```Razor TagHelper
<kendo-datetimepicker name="datetimepicker"
                      fill-mode="FillMode.Solid"
                      value="DateTime.Now"
                      date-input="true"
                      style="width:100%"
                      title="datetimepicker" />
```

> When not explicitly set, the applied theme controls the default fill mode.

```html
<span class="k-datetimepicker k-input k-input-solid">
</span>
```

## Rendering

Starting with version R1 2022, the component has a new rendering. For additional information on the decision behind these changes, visit the [Components Rendering Overview](https://www.telerik.com/aspnet-core-ui/documentation/styles-and-layout/components-rendering-overview) article.

To review the latest rendering of the component, refer to the HTML specifications in the [Kendo UI Themes Monorepo](https://github.com/telerik/kendo-themes/tree/develop). The `tests` folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.

## See Also

* [Components Appearance Overview](https://www.telerik.com/aspnet-core-ui/documentation/styles-and-layout/components-rendering-overview)
* [Appearance Demo of the DateTimePicker](https://demos.telerik.com/aspnet-mvc/datetimepicker/appearance)
