Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TimeSpanMask.GeneralShortFormat Property

Applies general short formatting to the editor’s value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public static string GeneralShortFormat { get; }

#Property Value

Type Description
String

The formatted value.

#Remarks

The general short format specifier includes the fractional seconds separator that depends on the current culture. Users can change the regional format in the SettingsTime & LanguageRegion system dialog. To change the mask culture programmatically, use the Culture property.

The following code snippet applies general short formatting to the Masked Input‘s value:

Razor
<DxMaskedInput @bind-Value="time"
               Mask="@TimeSpanMask.GeneralShortFormat" />
@code {
    TimeSpan time = new TimeSpan(5, 16, 30, 15, 7);
}

Time Span Masks - General Short Format

Refer to the following topic for more information: Time Span Masks.

See Also