Skip to main content

DxTimeEdit<T>.MinTime Property

Specifies the minimum time value that can be selected in the Time Edit.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public TimeSpan MinTime { get; set; }

Property Value

Type Description

A TimeSpan value in the range from 0 to a day that specifies the minimum time value.


Use the MinTime and MaxTime properties to specify the range of available time values. The Time Edit’s time picker disables times outside the range.

The default minimum and maximum values are System.DateTime.MinValue and System.DateTime.MaxValue. Custom values should meet the following criteria:

  • MaxTime is greater than MinTime.
  • MaxTime is less than 24 hours.
  • MinTime is greater than or equal to zero.


  • If a user types a value that is out of the range, the Time Edit keeps the previously selected time.
  • The Time Edit shows a notification message each time a user tries to navigate to a time value that is out of the range. To customize the notification text, use the OutOfRangeNotificationText property.
  • You can set the Time property to a time outside the range. In this case, the Time Edit shows this specified time, and the Time Edit’s picker displays the closest available time.

The following code snippet implements the Time Edit component that allows users to select time from the current hour.

<DxTimeEdit @bind-Time="@TimeValue"

@code {
    TimeSpan TimeValue { get; set; } = DateTime.Now.TimeOfDay;
    TimeSpan MinTime { get; set; }
    TimeSpan MaxTime { get; set; }

    protected override void OnInitialized() {
        MinTime = new TimeSpan(TimeValue.Hours, 0, 0);
        MaxTime = new TimeSpan(TimeValue.Hours, 59, 59);

Time Edit - Time Range

Run Demo: Time Edit — Time Range

See Also