# Date and Time Formatting

Format the date and time values of the DateTimePicker control in Blazor Edition. Learn more about the date and time formatting in Blazor documentation.

## Content



DateTimePicker allows you to set the date format for displaying the date in a specific format. You can use [Format](/componentone/api/blazor/online-blazor/dotnet-api/C1.Blazor.DateTimeEditors/C1.Blazor.DateTimeEditors.C1DateTimePicker.Format.html) property of the [C1DateTimePicker](/componentone/api/blazor/online-blazor/dotnet-api/C1.Blazor.DateTimeEditors/C1.Blazor.DateTimeEditors.C1DateTimePicker.html) class to set the standard date format for the DateTimePicker control. The following code showcases the use of Format property to set the "MM-dd-yyyy" date format to display date in the control.

```csharp
<C1DateTimePicker Value="DateTime.Today" Format="MM-dd-yyyy"></C1DateTimePicker>
```