The TimeSpanPicker for .NET MAUI allows you to use standard or custom time format strings.
To set formatting to the spinners that are displayed when the picker is opened, use the
SpinnerFormat property. To set formatting to the spinners that are displayed when time is selected, use the
To define the format of the string that will be visualized when the picker dialog is closed, use the
The TimeSpanPicker allows you to use standard or custom timespan format strings through the
SpinnerFormat property. Depending on what format is set, the picker visualizes spinner controls with -prepopulated values that can be picked.
To define the string format for the spinners, use the
string) property. The default format is
The available standard time-span format strings that can be set to the
DisplayStringFormat properies are described in the table below:
|Supported Standard TimeSpan Format String||Description|
||General Long "G" format specifier|
||General Short "g" format specifier|
||Constant "c" format specifier|
You can set only short Standard TimeSpan Format Strings to the TimeSpanPicker control.
The available custom time span format strings that can be set to the
DisplayStringFormat properties are described in the table below:
The Supported Custom TimeSpan Format Strings are:
You can set only short Custom TimeSpan Format Strings to the TimeSpanPicker control.
SpinnerFormat is set and the device culture is changed, the separators used for the format string won't be updated.
The following table lists the available separators:
The Supported TimeSpan Format Separators are: